Is this the logic for find the leap year? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
11th Feb 2018, 6:05 AM
<Saurabh Singh Rawat/>
<Saurabh Singh Rawat/> - avatar
2 Answers
+ 3
It's a bit more complicated. If the year is divisible by 100 it's common year. But if it's divisible by 400 it is leap year again. At least that's the rule in most places. The orthodox church begs to differ. An before 1600 or so things get wonky.
11th Feb 2018, 6:13 AM
1of3
1of3 - avatar
+ 18
//no thats wrong , have a look at this ☺👍 https://code.sololearn.com/c9xVV0L6XY4q/?ref=app
11th Feb 2018, 6:32 AM
Gaurav Agrawal
Gaurav Agrawal - avatar