Collatz Problem by eban

i=gets.to_i*2
p i=[i/2,i*3+1][i%2]while i>1

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

download

return top