编程题:leap year
Program to judge whether the year is leap year.
Leap year: The number of year can be divided exactly by 4, but not by 100, or it can be divided exactly by 400.
### Input Specification:
Input a year.
### Output Specification:
If the year entered is a leap year, output True, otherwise input False.
### Sample Input #1:
in
2004
### Sample Output #1:
out
True
### Sample Input #2:
in
1999
### Sample Output #3:
out
False
答案:若无答案欢迎评论
Leap year: The number of year can be divided exactly by 4, but not by 100, or it can be divided exactly by 400.
### Input Specification:
Input a year.
### Output Specification:
If the year entered is a leap year, output True, otherwise input False.
### Sample Input #1:
in
2004
### Sample Output #1:
out
True
### Sample Input #2:
in
1999
### Sample Output #3:
out
False
答案:若无答案欢迎评论