📅  最后修改于: 2022-03-11 14:45:42.522000             🧑  作者: Mango
i=int(input("enter the number"))
add=0
pro=1
while(i>0):
d=1%10
if (d%2==0):
add=add+d
else:
pro=pro*d
i=i//10
print("sum=",add,"product=",pro)