RosettaCodeData/Task/Leap-year/Maxima/leap-year.maxima
2023-07-01 13:44:08 -04:00

2 lines
91 B
Text

leapyearp(year) := is(mod(year, 4) = 0 and
(mod(year, 100) # 0 or mod(year, 400) = 0))$