C program to reverse given number

Example C program to reverse given number: