0
Help me finding leal year between 2000 to 2009???
4 odpowiedzi
+ 4
https://code.sololearn.com/cS25Yzd0Uy0s/?ref=app
+ 3
Check Code Playground for inspirations and code examples. Switch language filter to C++ and scoping filter to Most Popular 👍
+ 3
Giving you a short description:
if the year is divided by 400 it's a leap year.
else if the year is divided by 100 it's not a leap year.
else if the year is divided by 4 it's a a leap year.
else it's a leap year.
+ 1
Simba thanks for helping me now I can understand further problems like this we have to understand condition to apply a loop