C Program to Reverse a Number
In this program we will print the reverse of a given number.
//C Program to reverse a number
int n, reverse = 0, rem;
printf("Enter a number: ");
while(n != 0)
rem = n%10;
reverse = reverse*10 + rem;
n /= 10;
printf("Reverse of the number is = %d", reverse);
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.