code-1

It is to solve the The 3n + 1 problem.
http://uva.onlinejudge.org/external/1/100.html