#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n enter the number:");
scanf("%d",&n);
printf("\n reverse number is:");
while(n>0)
{
printf("%d",n%10);
n=n/10;
}
getch();
}
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\n enter the number:");
scanf("%d",&n);
printf("\n reverse number is:");
while(n>0)
{
printf("%d",n%10);
n=n/10;
}
getch();
}
No comments:
Post a Comment