\* C Program to to reverse a given number *\
# include < stdio.h >
int main( )
{
int num, rem, rev=0 ;
printf(" Enter the Number : ") ;
scanf("%d ", & num) ;
while ( num > = 0 )
{
rem = num % 10 ;
rev = ( rev * 10 ) + rem ;
num = num / 10 ;
}
printf("\n Reverse of Number is : ") ;
printf(" %d ", rev) ;
return ( 0 ) ;
}