Task

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



See also

 Leap year (wiki)


while (#1 = Get_Num("Year: ")) {
    #2 = (#1 % 4 == 0) && ((#1 % 100 != 0) || (#1 % 400 == 0))
    if (#2) {
        Message(" is leap year\n")
    } else {
	Message(" is not leap year\n")
    }
}