/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 vote203 views2 answers
- 0 vote220 views1 answer
- 4 votes196 views2 answers
- 2 votes192 views1 answer
- 39 votes194 views6 answers
- 3 votes185 views3 answers
- 2 votes176 views4 answers
- 2 votes190 views3 answers
- 0 vote187 views1 answer
- 0 vote183 views1 answer