Developer community
0 votes
43 views
asked by | 43 views

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 by

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users