I want leap year programme in c++. can u help me?
leap year
Collapse
X
-
Tags: None
-
-
-
Originally posted by weaknessforcatsD you understand how to calculate a leap year?
and 1/1/(x+1) subtract the first from the second and see what the outcome is: if it is
366 year x is a leap year.
kind regards,
Jos ;-)Comment
-
Originally posted by JosAHYep: calulate the Julian day number using Zeller's congruence on the dates 1/1/x
and 1/1/(x+1) subtract the first from the second and see what the outcome is: if it is
366 year x is a leap year.Comment
-
Originally posted by weaknessforcatsWhatever happened to determining a leap year as divisible by 4 but not by 400 ??
divisible by 4 but not by 100 except if it is divisible by 400 hence 2000 was a leap year.
The formula Jos mentions I image is just his warped sense of humour :D and anyway it appears to be a formula for week day so the difference he suggest should be in the range -7 <= result <= 7.Comment
Comment