program to find leap year.help with explanation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

program to find leap year.help with explanation

8th Sep 2016, 2:31 AM
Kabeer
Kabeer - avatar
2 Answers
+ 2
bool isLeapYear(int year) { if (year % 4 == 0) { if (year % 100 == 0) { if (year % 400 == 0) { return true; } return false; } return true; } return false; }
8th Sep 2016, 10:24 AM
Zen
Zen - avatar
- 1
*
8th Sep 2016, 6:05 AM
Bajgul Quamar
Bajgul Quamar - avatar