RosettaCodeData/Task/Leap-year/Maxima/leap-year.maxima

3 lines
91 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
leapyearp(year) := is(mod(year, 4) = 0 and
(mod(year, 100) # 0 or mod(year, 400) = 0))$