#include<stdio.h>
#include<conio.h>
void main()
{
int
num, i;
clrscr();
printf(“Enter
the number:”);
printf(“the
reverse number is: %d”,num);
while(num!=0)
{
i = num % 10;
printf(“%d”,i);
num = num/10;
}
getch();
}
OUTPUT:
Enter the number:123
No comments:
Post a Comment