/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 votes106 views1 answer
- 0 vote105 views2 answers
- 0 vote100 views1 answer
- 0 vote103 views1 answer
- 1 vote94 views1 answer
- 4 votes90 views2 answers
- 0 vote112 views1 answer
- 0 vote97 views1 answer
- 0 vote140 views1 answer
- 33 votes102 views6 answers