Răspuns:
using namespace std;
#include <iostream>
int main(){
int acumulator=1;
int n,s;
s=0;
cout<<"Numar : ";
cin>>n;
while (n>0){
if ((n%10)!=0){
s=s+n%10;
acumulator=acumulator*(n%10);
n=n/10;
} else
n=n/10;
}
cout<<"Suma : "<<s<<" ";
cout<<"Produs : "<<acumulator;
}