To find whether a year is a leap year or not, do these three things:
Divide the year by 4.
If there is a remainder, it is not a leap year.
If there is no remainder in Step 1, divide the year by 100.
If there is a remainder in Step 3, it is a leap year. However, if there is no remainder in Step 3, you will need to perform one more check.
Divide the year by 400.
If there is no remainder for Step 3 and Step 5, it is a leap year.
Read more