Collatz Problem by mulder_fbi

using C=System.Console;class o{static void Main(){for(int i=int.Parse(C.ReadLine())*2;i>1;)C.WriteLine(i=i%2>0?3*i+1:i/2);}}

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

download

return to the top page