search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
39 views
asked anonymous

1 Answer

0 votes
 
Best answer
 int main()  
 {  
   int a;  
   printf("Enter a number :");  
   scanf("%d",&a);  
   int y=0;  
   while(a)  
   {  
     y=y*10+a%10;  
     a=a/10;  
   }  
   printf("\nreverse= %d",y);  
   getch();  
   return 0;  
 } 
answered anonymous

Related questions

0 votes
1 answer 3.2K views
3.2K views
asked sara Guru 24.6k points 29 51 79
0 votes
1 answer 72 views
72 views
Write a program to accept a number and check whether the number is prime or not
asked anonymous
1 vote
1 answer 4.8K views
0 votes
2 answers 743 views
743 views
asked Smita Advisor 7.1k points 10 23 42
...