Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = int(input())
- s = x
- a = 0
- while s > 1 and a < 4:
- d = x % 10
- x = x // 10
- s = d
- print(s)
- a += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement