September 13th, 2003, 02:12 PM
Code that reads a Leap Year?
How do I write a program that reads a 4 digit year and then determines whether that year is a leap year??
September 13th, 2003, 02:24 PM
I'll give you a hint...
leap years happen every 4 years
that means the year should be divisible by 4
i.e. it has no remainder
September 13th, 2003, 02:28 PM
September 13th, 2003, 02:57 PM
Thanks this really helps I am so glad I found this site!!!!
September 13th, 2003, 02:58 PM
September 15th, 2003, 09:40 AM
every 4 years, except every hunderd (so 1900 and 2100 are not leap years), except every four hundred (so 2000 and 2400 are leap years)
September 15th, 2003, 10:03 AM