Task

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



See also

 Leap year (wiki)


func isleap(year) {
    if (year %% 100) {
        return (year %% 400);
    }
    return (year %% 4);
}