This program will enable user to only enter the number of their wish and 
   get the output as reverse of the number entered.
   
 Program

 #include<stdio.h>

 #include<conio.h>

 void main()

 {

 int n, rem, rev =0;

 printf("Enter the number:");

 scanf("%d",&n);

 printf("Reverse of the number entered =  ");

 while (n>0)

  {

   rem=n%10;

   printf("%d",rem);

   n=n/10;

   }

}

 Output:
 








Post a Comment

Previous Post Next Post