numstr=input(‘please input a number:’)
x=int(numstr)
while x>0 and x !=1:
if x%2==0:
x=(x/2)
print (x)
else:
x=(x*3+1)
print (x)
if x==1:
print(‘done’)
Our goal is to make the OpenLab accessible for all users.
Our goal is to make the OpenLab accessible for all users.