answersLogoWhite
Math and Arithmetic
Calendar
Leap Year

How many leap years are there between 1780 and 2832?


Top Answer
User Avatar
Wiki User
2007-08-03 00:21:01
2007-08-03 00:21:01

== == 255

---

The logic for determining whether or not a year is a leap year, when you're looping through a span of years is this:

i%4==0 && i%100!=0)i%400==0

In plain English:

1) if the number is evenly divisble by 4 and NOT evenly divisible by 100

-or-

2) the number is evenly divisible by 400

Then it's a leap year.

Related Questions

User Avatar

There are 4 years between leap year!

User Avatar

There are 4 years between every leap year. Correction: There are 4 years between MOST leap years. That's the case 99.25% of the time. For the other 0.75% of the time, there are 8 years between leap years.

User Avatar

Between 2002 and 2011 the leap years were 2004 and 2008.

User Avatar

There were 4 & 3/4 leap years between 1994 and 2011.


Copyright © 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.