Ответ:
n = int(input())
k = 0
s = 0
while n > 0:
s = s + n%10
n = n//10
k = k + 1
print(k)
print(s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
n = int(input())
k = 0
s = 0
while n > 0:
s = s + n%10
n = n//10
k = k + 1
print(k)
print(s)