- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
n = int(input())
a = n
i = 0
last_digit = 0
total = 0
while n != 0:
i += 1
n = n // 10
while a != 0:
last_digit = (a % 10) * 10 ** i
total += last_digit
i = i - 1
a = a // 10
print(total // 10)
Комментарии (0) RSS
Добавить комментарий