Collatz Problem by pooq

\A:-writeln(A),A>1,(0<A/\1->B is 3*A+1;B is A/2),\B.
m:-prompt1(''),readln([X]),\X.

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

download

return to the top page