#C985. Leap Year Checker
Leap Year Checker
Leap Year Checker
In this problem, you are required to determine whether a given year is a leap year. A year is considered a leap year if it satisfies the following condition:
\(\text{year} \mod 4 = 0 \text{ and } \text{year} \mod 100 \neq 0\) or \(\text{year} \mod 400 = 0\).
You will be given a single integer as input, representing the year, and you must output True
if it is a leap year, or False
otherwise.
Make sure your solution correctly handles century years.
inputFormat
The input consists of a single integer year
on one line.
outputFormat
Output a single line containing either True
or False
based on whether the given year is a leap year.
2016
True