Advertisement
k1alo

Untitled

Oct 13th, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. user = input("Введите целое число: ")
  2. number = 0
  3. while user != "":
  4.     number = number + int(user[0])
  5.     user = user[0:-2]
  6. print(number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement