/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
- 0 vote233 views1 answer
- 0 vote205 views1 answer
- 0 vote178 views1 answer
- 8 votes160 views2 answers
- 7 votes155 views2 answers
- 1 vote239 views5 answers
- 1 vote146 views1 answer
- 0 vote167 views1 answer
- 0 vote163 views1 answer
- 0 vote156 views2 answers