maxim_shlyahtin

Задача 2

Oct 9th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. n = int(input())
  2. count = 0
  3. while n != 0:
  4. count += n % 10
  5. n //= 10
  6. print(count)
Add Comment
Please, Sign In to add comment