Task

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



See also

 Leap year (wiki)


on leap_year(y)
    return y mod 4 is equal to 0 and (y mod 100 is not equal to 0 or y mod 400 is equal to 0)
end leap_year
 
leap_year(1900)