How to determine if a year is a leap year?
A leap year has 366 days (the extra day is the 29th of February), whereas, a non-leap year has 365 days.
Answer: To determine if a year is a leap year we need to check its divisibility by 4 and 400.
Let's look into the rules of finding out if a given year is a leap year.
To know whether a year is a leap year or not, we need to divide the year by 4. If the year is fully divisible by 4, it is a leap year. For example, 2020 is divisible by 4, hence, it is a leap year with a February of 29 days. While this rule is applied to all regular years, there are century years like 300, 700, 1900, 2000, that need to be divided by 400 to check whether they are leap years or not. For example, a century year like 2000 is divisible by 400, so it is a leap year. However, a century year like 1900 is not divisible by 400, thus it is not a leap year, even though it is divisible by 4.