Task

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



See also

 Leap year (wiki)


function isLeapYear(integer year)
    return remainder(year,4)=0 and remainder(year,100)!=0 or remainder(year,400)=0
end function