In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of March 10th
(this exercise will still be available for submission after that deadline, but without couting towards your grade)
[to understand the context of this problem, you should read the class #02 exercise sheet]
A leap year contains one extra day, having a total of 366 days.
A year is said to be a leap year, if the year is exactly divisible by 4 but and not divisible by 100. It is also a leap year if it is exactly divisible by 400.
Write a program that, given a year, finds out if it is a leap year or not.
The input consists of one line containing one integer Y indicating the year to consider.
The output should be a single line displaying "Y is a leap year"
(if it is a leap year) of "Y is a normal year"
(if it is not a leap year).
The following limits are guaranteed in all the test cases that will be given to your program:
1 ≤ Y ≤ 5000 | Year to consider |
Example Input 1 | Example Output 1 |
2025 |
2025 is a normal year |
Example Input 2 | Example Output 2 |
2008 |
2008 is a leap year |