A leap year is a calendar year containing one additional day added to keep the calendar year synchronized with the astronomical or seasonal year. For example, 2024 is a leap year.

To check whether a year is a leap year or not, the year should satisfy at least one of the following two conditions

- A year should be exactly divisible by 4, but, not by 100.
- A year should be exactly divisible by 4, 100 and 400 at the same time.

2024 is divisible by 4, but not by 100. Hence condition one satisfies and we don't have to bother about condition 2. Hence, 2024 is a Leap year.

2000 is divisible by 4, but also by 100. So condition one fails. Now, checking for condition two, 2000 is divisible by 4, 100 and 400 so condition 2 satisfies. Hence, 2000 is a Leap year.

2100 is divisible by 4, but also by 100. So condition one fails. Now, checking for condition two, 2000 is divisible by 4, 100, but not by 400 so condition 2 also fails. Hence, 2100 is not a Leap year.

The following calculator will help you to find whether the given year is leap year or not.

Leap Year from to

C Program to Check Leap Year
C++ Program to Check Leap Year
C# Program to Check Leap Year
Java Program to Check Leap Year
PHP Program to Check Leap Year
Python Program to Check Leap Year