(1) can be divided exactly by 4 years, but cannot be divided exactly by 100;
(2) year divisible by 400,
Read from the console a year, if the year between 1900 ~ 2020 (including 1900 and 2020), the judge whether this year is a leap year, otherwise output "year input error,"
Requirement: the code is written in the answer in the
CodePudding user response:
Suggest the original poster write a write to myself