#include <stdio.h>
int main() {
int n;
int r=0;
int lastdigit=0;
while(n!=0){
lastdigit= n%10;
r= r + lastdigit;
r=r*10;
n=n/10;
}
printf("The reverse of the number is %d",r
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBuOwogICAgcHJpbnRmKCJFbnRlciB0aGUgbnVtYmVyOiAiKTsKICAgIHNjYW5mKCIlZCIsJm4pOwogICAgaW50IHI9MDsKICAgIGludCBsYXN0ZGlnaXQ9MDsKICAgIHdoaWxlKG4hPTApewogICAgICAgICAgIGxhc3RkaWdpdD0gbiUxMDsKICAgICAgICAgICByPSByICsgbGFzdGRpZ2l0OwogICAgICAgICAgIHI9cioxMDsKICAgICAgICAgIG49bi8xMDsKICAgICB9CiAgICBwcmludGYoIlRoZSByZXZlcnNlIG9mIHRoZSBudW1iZXIgaXMgJWQiLHIpOwogICAgICAgCgkKCXJldHVybiAwOwp9Cg==