Problem Statement
Problem Description
Write a program that determines whether a given year is a leap year or a common year.
Leap Year Rules
A year is a leap year if it satisfies the following conditions:
- It is divisible by 4, and If it is divisible by 100, then it must also be divisible by 400 to be a leap year.
- Otherwise (not divisible by 100), it is a leap year.
In simpler terms:
- If the year is divisible by 400 β Leap Year
- Else if divisible by 100 β Common Year
- Else if divisible by 4 β Leap Year
- Otherwise β Common Year
Example
- 2024: Divisible by 4 but not 100 β LEAP YEAR
- 1900: Divisible by 100 but not 400 β COMMON YEAR
- 2000: Divisible by 400 β LEAP YEAR