RosettaCodeData/Task/Leap-year/Sidef/leap-year-2.sidef

2 lines
65 B
Plaintext

func isleap(year) { year %% 100 ? (year %% 400) : (year %% 4) };