自己编写一段程序判断一个年份(比如1900年)是否是闰年,是则显示1900年为闰年,否则显示1900年不是闰年。
I have written a program to determine whether a year (such as 1900) is a leap year, is the show in 1900 as a leap year, otherwise show that 1900 was not a leap year.
比如,2000年是闰年,但是1900年不是。因为1900不能被400整除。
For example, the year 2000 was a leap year, but the year 1900 was not, because when divided by 400, it does not render a whole number.
比如,2000年是闰年,但是1900年不是。因为1900不能被400整除。
For example, the year 2000 was a leap year, but the year 1900 was not, because when divided by 400, it does not render a whole number.
应用推荐