Commit c8523eef by BellCodeEditor

auto save

parent 57b6b1fa
Showing with 13 additions and 0 deletions
J=int(input(""))
k=0
while True:
if J==1:
break
if J%2==0:
J=J/2
k=k+1
else:
J=J*3+1
k=k+1
print(k)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment