package test_35import scala.io.StdInobject test3 {def main(args: Array[String]): Unit = {// 从控制台读入一个年份val year =StdIn.readInt()//判断year是否闰年//1.year能整除4 不能整除100//2.year能整除400year match {case x if(x%400 == 0) => println(s"$x 是闰年")case x if(x%4==0 && x%100 != 0) => println(s"$x 是闰年")case _ => println(s"$year 是闰年")}
}
}