#include <stdio.h>
int main() {
int n, reverse = 0, remainder;
while (n != 0) {
remainder = n % 10;
reverse = reverse * 10 + remainder;
n /= 10;
}
printf("Reversed number = %d", reverse
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCiAgaW50IG4sIHJldmVyc2UgPSAwLCByZW1haW5kZXI7CgogIHByaW50ZigiRW50ZXIgYW4gaW50ZWdlcjogIik7CiAgc2NhbmYoIiVkIiwgJm4pOwoKICB3aGlsZSAobiAhPSAwKSB7CiAgICByZW1haW5kZXIgPSBuICUgMTA7CiAgICByZXZlcnNlID0gcmV2ZXJzZSAqIDEwICsgcmVtYWluZGVyOwogICAgbiAvPSAxMDsKICB9CgogIHByaW50ZigiUmV2ZXJzZWQgbnVtYmVyID0gJWQiLCByZXZlcnNlKTsKCiAgcmV0dXJuIDA7Cn0=