#include <stdio.h>
#include <math.h>
int main()
{
int n;
int revers;
int copy;
scanf("%d",&n);
copy=n;
while(copy>0)
{
revers=revers*10;
revers=revers+(copy%10);
copy/=10;
}
printf("%d",revers);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: