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