Collatz Problem by chocobi

main(c){for(scanf("%d",&c);c/printf("%d\n",c);)c=c%2?c*3+1:c/2;}

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

download

return to the top page