#include <stdio.h>
int main(int argc, const char * argv[])
{
int input = 123;
int temp, r, output = 0;
temp = input;
while (temp > 0) {
r = temp % 10;
temp = temp / 10;
output = output * 10 + r;
}
printf("Original Number : %d \n", input);
printf("Reverse Number : %d \n", output);
return 0;
}