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