Commit 66d4c625 by BellCodeEditor

auto save

parent 654bc3ba
Showing with 10 additions and 0 deletions
n=int(input("请输入一个数字"))
count=0
while n!=1:
if n%2==0:
n=n/2
else:
n=3*n+1
count=count+1
print(count)
\ 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