write a program to reverse a given number and check whether a given number is same.
Answers
Answered by
0
Answer:
The program output is also shown below.
int num, temp, remainder, reverse = 0;
printf("Enter an integer \n");
scanf("%d", &num);
/* original number is stored at temp */
temp = num;
while (num > 0)
remainder = num % 10;
reverse = reverse * 10 + remainder;
More items...
Similar questions