Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- while n > 1:
- if n % 2:
- n = 3 * n + 1
- print(n)
- elif n % 2 == 0:
- n/=2
- print(n)
- else:
- print('Я ЛОМАЛ СТЕКЛО')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement