By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Seriously, someone who programmed that "glitch" needs to be fired, how simple is it to calculate a leap year or not?

if (year mod 4 is 0) and (year mod 100 is not 0) or (year mod 400 is 0)
then is_leap_year
else
not_leap_year

Not hard



Unicorns ARE real - They are just fat, grey and called Rhinos