Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b = int(input("Enter the number you want to check"))
- def Generator(a):
- while a != 1:
- if (a%2) == 0:
- a = a/2
- else:
- a = (a*3) + 1
- a = int(a)
- print(a)
- Generator(b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement