Collatz Problem by msk

class A{static{for(int s=new java.util.Scanner(System.in).nextInt()*2;s>1;)System.out.println(s=s%2>0?s*3+1:s/2);}}

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

download

return to the top page