/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 vote180 views1 answer
- 1 vote156 views1 answer
- 0 vote177 views1 answer
- 0 vote165 views1 answer
- 4 votes177 views2 answers
- 1 vote198 views1 answer
- 2 votes136 views1 answer
- 6 votes229 views1 answer
- 0 vote172 views1 answer
- 1 vote175 views1 answer