#include<stdio.h>
#include<conio.h>
void main()
{
int rem,rev=0,temp,n;
clrscr();
printf("\nEnter any number :- ");
scanf("%d",&n);
temp=n;
while(temp!=0)
{
rem=temp%10;
rev=rev*10+rem;
temp=temp/10;
}
printf("\nThe Reverse number is :- %d",rev);
getch();
}
Output :-
Back to 'C Language Programs'
No comments:
Post a Comment