Răspuns :
#include <iostream>
using namespace std;
long n,suma;
int main()
{
int j=0;
int i=0;
cin >> n;
i=n%100;
j=n%10;
suma=i+j;
cout << suma << endl;
return 0;
}
using namespace std;
long n,suma;
int main()
{
int j=0;
int i=0;
cin >> n;
i=n%100;
j=n%10;
suma=i+j;
cout << suma << endl;
return 0;
}
#include <iostream>
using namespace std;
int n, z, u, s;
int main()
{
cin >> n;
u = n % 10;
z = (n / 10) % 10;
s = u + z;
cout << s;
return 0;
}
using namespace std;
int n, z, u, s;
int main()
{
cin >> n;
u = n % 10;
z = (n / 10) % 10;
s = u + z;
cout << s;
return 0;
}