Răspuns :
#include <iostream>
using namespace std;
int main()
{int n,ogl=0;
cin>>n;
while(n!=0)
{
ogl=ogl*10+n%10;
n=n/10;
}
cout<<ogl;
return 0;
}
using namespace std;
int main()
{int n,ogl=0;
cin>>n;
while(n!=0)
{
ogl=ogl*10+n%10;
n=n/10;
}
cout<<ogl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{int n,ogl=0;
cout<<"n=";cin>>n;
while(n!=0)
{
ogl=ogl*10+n%10;
n=n/10;
}
cout<<"oglindul lui"<<n<<"este"<<ogl;
return 0;
}
using namespace std;
int main()
{int n,ogl=0;
cout<<"n=";cin>>n;
while(n!=0)
{
ogl=ogl*10+n%10;
n=n/10;
}
cout<<"oglindul lui"<<n<<"este"<<ogl;
return 0;
}