#include<stdio.h>
#include<conio.h>
void main()
{
  long int n,s=0;
  int i;
  clrscr();
  printf("enter the number to be reversed\n");
  scanf("%ld",&n);
   while(n!=0)
  {
   i=n%10;
   n/=10;
   s=i+s*10;
  }
  printf("%ld is the reverse of the number ",s);
  getch();
}
