answersLogoWhite

0


Top Answer
User Avatar
Wiki User
Answered 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.

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Loading...
Still have questions?

Related Questions

How many years between leap year?

There are 4 years between leap year!


How many years before a leap year?

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.


What are the leap years between 2002 and 2011?

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


How many leap years are there between 2200AD to 2300AD?

24 leap years


Who many years between leap years?

== ==


How many leap years between 1994 and 2011?

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


How many years between leap years?

three years


Which years between 2007 and 2030 will be leap years?

there will be 23 years


How many leap years between 1997 and 2008?

There were three leap years in that period:200020042008


What are the leap years starting from 1990 till 1999?

1992 and 1996 were the leap years between 1990 and 1999.


How many leap years since the 25 of November 1970?

There were 10 leap years between 1970 and 2011.


What leap years were between 1995 and 2002?

1996 and 2000 were leap years during the time span given.


Can there be 8 years gap in leap year?

Indeed there can be 8 years between consecutive leap years. The rule is that a year is a leap year if it is divisible by 4 and not divisible by 100, or if it is divisible by 400. For example, 1700, 1800 and 1900 were not leap years but 1600 and 2000 were leap years.The last occurrence of an 8-year gap between consecutive leap years was therefore 1896 and 1904. The next occurrence will be 2096 and 2104.


What 2 holidays are a leap year between?

They're between four years' worth of holidays... a leap year occurs every four years.


What were leap years between 1998 and 2000?

1999 was the only year between 1998 and 2000, and it was not a leap year.


Was there a leap year between 1970 and 1980?

There were. 1972 and 1976 were intercalary years (leap years), as was 1980. Such years are sometimes called bissextile years.


How many leap years will there be from 2000 to 3000 inclusive?

Leap years are any years evenly divisible by four, with two exceptions. So years like 2004 and 2008 are leap years.The two exceptions:Any "century" year evenly divisible by 100 is NOT a leap year, so 1900 was not a leap year and 2100 will not be a leap year, except:Any year number divisible by 400 IS a leap year, so 2000 was and 2400 will be leap years.Of the 1000 years between 2001 and 3000, there are 250 "divisible by 4" years, minus 10 "century" years plus 2 "divisible by 400" years (2400 and 2800) gives 242 leap years between 2001 and 3000. Add 2000, and there are 243 leap years between 2000 and 3000, inclusive.


How many leap years between 1991 and 2012?

There were six leap years between 1991 and 2012 (1992, 1996, 2000, 2004, 2008, and 2012).


What is the longest time between two leap years?

8 years


How many leap years will there be from 1917 to 2017?

There are 25 leap years between 1917 and 2017. Most centuries have 24 leap years, but the period indicated includes the leap century day (as I call it) of February 29, 2000.


Was there a leap year between 2008-2011?

2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.2008 was a leap year. As a leap year only occurs every 4 years, the next one is 2012, so no other one occurred between then.


How many leap years between 1999 and 2011?

Three leap years happened in that time period: 2000, 2004 and 2008. A leap year occurs every four years, so 2012, 2016, 2020 and 2024 will all be leap years.


How many Leap Years since 1900?

There have been 27 leap years between 1900 and 2010. The next one is 2012.


How many leap years since 1962?

Between 1962 and 2011, there were 12 leap years: every four years from 1964 through 2008 inclusive.


How many years in between each leap year?

every 4 years