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

5 lines
120 B
Text

leap_year(Year) :-
( mod(Year, 4) =:= 0, mod(Year, 100) =\= 0 ->
true
; mod(Year, 400) =:= 0
).