Ответ:
Python:
a = list(input())
s=0
p=1
for i in a:
s+=int(i)
p*=int(i)
print(s,p)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Python:
a = list(input())
s=0
p=1
for i in a:
s+=int(i)
for i in a:
p*=int(i)
print(s,p)