C program to reverse a number and to print it on the screen. For example, if the input is 123, the output will be 321. In the program, we use the modulus operator (%) to obtain digits of the number. To invert the number write its digits from right to left.
output:
Enter a number to reverse
12345
Reverse of the number = 54321
need an explanation for this answer? contact us directly to get an explanation for this answer