C program to print given number in reverse order

C program to print given number in reverse order

Input:

Enter the number to find its reverse:
1234

Output:

4321

Implementation: