Răspuns:
#include <iostream>
using namespace std;
int main()
{
int n, s, p, zeci, sute, mii, zmii;
cout<<"n="; cin>>n;
zeci=(n/10)%10;
sute=(n/100)%10;
mii=(n/1000)%10;
zmii=(n/10000)%10;
s=zeci+mii;
p=zmii*sute;
cout<<s<<" ";
cout<<p;
return 0;
}
Explicație: