C program to reverse a number

C program to reverse a number

Output:

Enter the number to reverse:
1234
The reversed number is 4321

Implementation: