Collatz Problem by pooq

int a;input a;a=a*2;while a>1{if a mod 2>0{a=3*a+1;}else{a=a/2;}print a;}

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

download

return to the top page