leap year by elzup

while(y=readline())
print(y + ' is ' +  ((y % 4 === 0) && (y % 100 !== 0) || y % 400 === 0 ?  '' : '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