/Python/I=int(input("enter the number")); sum=0; pro=1; while(i>0): d=1%10; if (d%2==0): sum=sum+d; else: pro=pro*d; i=i//10; print("sum=",sum,"product=",pro);
I=int(input("enter the number")); sum=0; pro=1; while(i>0): d=1%10; if (d%2==0): sum=sum+d; else: pro=pro*d; i=i//10; print("sum=",sum,"product=",pro);
I=int(input("enter the number")); sum=0; pro=1; while(i>0): d=1%10; if (d%2==0): sum=sum+d; else: pro=pro*d; i=i//10; print("sum=",sum,"product=",pro);
0
- 75 votes138 views6 answers
- 0 vote97 views1 answer
- 0 vote94 views1 answer
- 0 vote95 views1 answer
- 0 vote100 views1 answer
- 1 vote99 views1 answer
- 2 votes97 views1 answer
- -1 vote95 views1 answer
- 0 vote106 views1 answer
- 2 votes95 views1 answer