Răspunsuri

2014-11-04T08:47:43+02:00
#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;
 }
2014-11-04T10:41:12+02:00
#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;
 }