Leap Year by Logic Leads

n=int(input())\x0d
i=2000\x0d
while(i<=n):\x0d
    if((i%4==0) and (i%100!=0)) or (i%400==0):\x0d
        print(i)\x0d
    i+=4    \x0d

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page