- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 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