Răspuns:
#include <iostream>
#include<string>
using namespace std;
int main()
{
cout << "Introduceti numarul smecher: " << endl;
string x;
cin>>x;
int len = x.length();
cout << "Numerele smechere vor fi: " << x.at(len-4) << " si " << x.at(len-2) << endl;
}
Explicație: