/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
- 2 votes137 views2 answers
- 0 vote99 views1 answer
- 0 vote105 views1 answer
- 0 vote160 views1 answer
- 1 vote118 views2 answers
- 9 votes114 views6 answers
- 0 vote110 views1 answer
- 0 vote114 views1 answer
- 0 vote112 views1 answer
- 1 vote107 views2 answers