/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 vote192 views1 answer
- 0 vote216 views1 answer
- 1 vote233 views1 answer
- 0 vote244 views2 answers
- -1 vote211 views1 answer
- 12 votes215 views6 answers
- 1 vote218 views1 answer
- 2 votes216 views2 answers
- -1 vote242 views2 answers
- 12 votes220 views6 answers