Commit 09ab8477 by BellCodeEditor

save project

parent 69f8fdea
Showing with 16 additions and 0 deletions
n=input("请输入")
c=int(n)
i=0
while True:
if c!=1:
if c%2==1:
c=(3*c+1)/2
i=i+1
else :
c=c/2
i=i+1
else:
print(i)
break
\ 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