Advertisement
FaDaQ

Untitled

Mar 2nd, 2022
732
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. num = input("Введите число: ")
  2.  
  3. sum = 0
  4.  
  5. for i in num:
  6.     sum += int(i)
  7.  
  8. print(sum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement