web analytics

What is the condition for a leap year?

276 views
asked Dec 17, 2015 in Other by Vishki (10,550 points)
reshown Dec 17, 2015 by Vishki

1 Answer

0 votes
answered Dec 17, 2015 by Vishki (10,550 points)
edited Dec 17, 2015 by Vishki

For an year to be leap according to the Gregorian calendar, the following condition(conditions) should be satisfied.

"The year should be divisible by 4. If the year is divisible by 100 also, then it should be divisible by 400 as well."
(By divisible, we mean exactly divisible, i.e., with no remainder.)

So for an year to be leap

1. Check if the year is divisible by 4. If not divisible, its not a leap year. No further checks needed.
2. If divisible by 4, then check if the year is divisible by 100. If not divisible, it is a leap year. No further checks necessary.
3. If divisible by 100, check if the year is divisible by 400. If divisible by 400, then it is a leap year, else it is not a leap year.

If...Then...Else

If [not divisible by 4] then [not a leap year]
else if [not divisible by 100] then [leap year]
else if [divisible by 400] then [leap year]
else [not a leap year]

Combinations

Divisible by
4
Divisible by
100
Divisible by
400
Leap Year
?
YesYesYesYes
YesYesNoNo
YesNoNo(not required)Yes
NoNo(not required)No(not required)No

Examples

YearDivisble by
4
Divisible by
100
Divisible by
400
Leap Year
?
1900YesYesNoNO
1986NoNot requiredNot requiredNO
1992YesNoNot requiredYES
1996YesNoNot requiredYES
2000YesYesYesYES
2016YesNoNot requiredYES
2060YesNoNot requiredYES
2100YesYesNoNO
2200YesYesNoNO
2300YesYesNoNO
2400YesYesYesYES

Related questions

1 answer 3,147 views
asked Jan 21, 2014 in Other by Vishki (10,550 points)
1 answer 2,247 views
1 answer 302 views
asked Jul 15, 2015 in Other by Vishki (10,550 points)

Like us on Facebook

114 questions

117 answers

9 comments

8 users

...