Hello all, I'm a little confused by the criteria given for what determines a leap year. It says: - every year evenly divisible by 4 - except a year that is evenly divisible by 100 - except a year that is evenly divisible by 400 Yet the example given is that the year "2000" should result in "leap year" output? Isn't 2000 evenly divisible by 100, and such, result in "not a leap year"? Also, if a year is divisible by 100, what additional criteria does "evenly divisible by 400" add? I can't think of something that is divisible by 400 that wouldn't also be divisible by 100. Thanks! Bob
2000 is divisable by 400, so it is leap 1900 is divisable by 100 but not 400, so its not a leap 1972 is divisable by 4 but not 400 or 100, so it is a leap Good Luck Dan [This message has been edited by Daniel Dunleavy (edited November 05, 2001).]
As Johannes said, this question gets asked a lot. I remember having to look through search results to figure out just what the logic is (because the wording wasn't clear to me). Is figuring out what's required actually part of the assignment? Pauline