Task

Determine whether a given year is a leap year in the Gregorian calendar.



See also

 Leap year (wiki)


const func boolean: isLeapYear (in integer: year) is
  return (year rem 4 = 0 and year rem 100 <> 0) or year rem 400 = 0;