Home > Back-end >  Please answer, thank you!
Please answer, thank you!

Time:10-07

Programming problem: to determine whether a year is a leap year, as long as satisfy any of the following conditions can be:

(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
  • Related