/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
- 3 votes112 views1 answer
- 0 vote308 views1 answer
- 28 votes106 views3 answers
- 0 vote118 views2 answers
- 46 votes118 views6 answers
- 0 vote107 views1 answer
- 1 vote106 views2 answers
- 3 votes113 views2 answers
- 1 vote104 views1 answer
- 26 votes107 views2 answers