1) a = int(input())
b = a % 10
c = a % 100 // 10
d = a // 100 % 10
e = a // 1000
print(b * c * d * e)
2) a = int(input())
b = a % 100 // 10
c = a // 100 % 10
d = a // 1000 % 10
print(b + c + d)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1) a = int(input())
b = a % 10
c = a % 100 // 10
d = a // 100 % 10
e = a // 1000
print(b * c * d * e)
2) a = int(input())
b = a % 100 // 10
c = a // 100 % 10
d = a // 1000 % 10
print(b + c + d)