Print leap year

 

 

Leap year condition becomes: divisible by 4, is not divisible by 100; or divisible by 400.

 

Therefore, the first negative in general, the second judgment is not a leap year.

Guess you like

Origin www.cnblogs.com/miniSkytrue/p/12110749.html