Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = input("Введите целое число: ")
- number = 0
- while user != "":
- number = number + int(user[0])
- user = user[0:-2]
- print(number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement