#include<iostream.h>
#include<conio.h>
void main()
{
int r = 0, no, s = 0, k;
clrscr();
cout<<:Enter a number :";
cin>>no;
k = no;
while(no != 10)
{
r = no % 10;
no = no / 10;
s = s * 10 + r;
}
cout<<"Reverse is :"<<s;
if(k == s)
cout<<"Original number and Reversed number are same";
else
cout<<"Original number and Reversed number are not same";
}