#include<stdio.h>
#include<conio.h>
void main ()
{
int num,r,reverse=0;
clrscr ();
printf("\n Enter Any Number:");
scanf("%d",&num);
while(num)
{
r=num%10;
reverse=reverse*10+r;
num=num/10;
}
printf("\n Reversed of Number: %d", reverse);
getch ();
}
Follow Us On Facebook !!!
No comments:
Post a Comment