0 0
Read Time:15 Second
#include <stdio.h>
 
int main()
{
   int n, reverse = 0;
 
   printf("Enter a number to reversen");
   scanf("%d",&n);
 
   while (n != 0)
   {
      reverse = reverse * 10;
      reverse = reverse + n%10;
      n = n/10;
   }
 
   printf("Reverse of entered number is = %dn", reverse);
 
   return 0;
}
Previous post What are the main advantages of MVC pattern?
Next post What is cross Join in SQL Server?
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Close
0
Would love your thoughts, please comment.x
()
x
× How can I help you?