Intro
Given a year, report if it is a leap year.
The tricky thing here is that a leap year in the Gregorian calendar occurs:
1 2 3 |
|
Task
For example, 1997 is not a leap year, but 1996 is. 1900 is not a leap year, but 2000 is.
The Code
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 |
|
Last update: February 1, 2021