leap year by KEN3

require'date'\x0d
while gets do\x0d
n=$_.to_i\x0d
puts"#{n} is #{'not 'if !Date.leap? n}a leap year."\x0d
end

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

download

return to the top page