文件名称:Java
介绍说明--下载内容均来自于网络,请自行研究使用
编写程序,判断给定的某个年份是否是闰年。
闰年的判断规则如下:
(1)若某个年份能被4整除但不能被100整除,则是闰年。
(2)若某个年份能被400整除,则也是闰年。-Write a program to determine whether a given year is a leap year. Judgment leap year rules are as follows: (1) If a year divisible by 4 but not divisible by 100, it is a leap year. (2) If a year is divisible by 400, it is a leap year.
闰年的判断规则如下:
(1)若某个年份能被4整除但不能被100整除,则是闰年。
(2)若某个年份能被400整除,则也是闰年。-Write a program to determine whether a given year is a leap year. Judgment leap year rules are as follows: (1) If a year divisible by 4 but not divisible by 100, it is a leap year. (2) If a year is divisible by 400, it is a leap year.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Java.doc