Răspuns:
include <iostream>
using namespacestd
int main()
{
int NR1,NR2,c,d,s=0,p=1;
cout<<"NR1=";
cin>>NR1;
cout<<"NR2=";
cin>>NR2;
if(NR1>NR2)
{
c=NR1%10;
d=NR2%10
s=s+c
z=z*d
}
else
{
c=NR2%10;
d=NR1%10
s=s+c
p=p*d
}
Cout<<s;
cout<<p
}
Explicație: