Răspuns :
#include <iostream>
using namespace std;
int main(){ int n, nn=0; cin>>n; while (n) { int a = n%10; n=n/10; int b = n%10; n = n/10; nn = nn*10+b; nn = nn*10+a; } while (nn) { n = n*10+nn%10; nn/=10; } cout<<n;
return 0;}
using namespace std;
int main(){ int n, nn=0; cin>>n; while (n) { int a = n%10; n=n/10; int b = n%10; n = n/10; nn = nn*10+b; nn = nn*10+a; } while (nn) { n = n*10+nn%10; nn/=10; } cout<<n;
return 0;}