Input
#include<stdio.h>
#include<conio.h>
void main()
{
int num,res=0;
clrscr();
printf("Reverse a Number\n");
printf("Enter the Number to Reversed\n");
scanf("%d",&num);
printf("Number before reverse %d\n",num);
while(num>0)
{
res=10*res+num%10;
num=num/10;
}
printf("Number After reverse\t %d",res);
getch();
}