-->
当前位置:首页 > 题库

PROGRAMMING:Output leap year

Luz5年前 (2021-05-10)题库479
Outputs all leap year years since the end of a certain year in the 21st century. Note: the criterion of leap year is that the year can be divided by 4, but not by 100, or by 400.
###Input format:
Enter a deadline year for the 21st century in a row.
###Output format:
Output all the leap years that meet the conditions line by line, that is, each year occupies one line. If the input is not the year of the 21st century, the output will be "invalid year!". If there is no leap year, output "None".
###Input sample 1:
```in
two thousand and forty-eight
```
###Output sample 1:
```out
two thousand and four
two thousand and eight
two thousand and twelve
two thousand and sixteen
two thousand and twenty
two thousand and twenty-four
two thousand and twenty-eight
two thousand and thirty-two
two thousand and thirty-six
two thousand and forty
two thousand and forty-four
two thousand and forty-eight
```
###Input sample 2:
```
two thousand
```
###Output sample 2:
```
Invalid year!
```






answer:If there is no answer, please comment