x = int(input())
sum = 0
proz = 1
while x > 1:
sum += x % 10
proz *= x % 10
x //= 10
print(sum)
print(proz)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
x = int(input())
sum = 0
proz = 1
while x > 1:
sum += x % 10
proz *= x % 10
x //= 10
print(sum)
print(proz)