leap year by pooq

a=scan("stdin")
write(paste(a,"is",ifelse((a%%100+!a%%400)*!a%%4,"a","not a"),"leap year."),"")

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page