I HAVE USED SIGNED INT THEN ALSO MY CODE IS JUST IGNORING NEGATIVE INTERGER AS INPUT
#include
using namespace std;
int main()
{
signed int n, reverse=0, rem;
cout<<"";
cin>>n;
while(n!=0)
{
rem=n%10;
reverse=reverse*10+rem;
n/=10;
}
cout<<""<<reverse<<endl;
return 0;
}