**WHILE LOOP PROGRAME**
=======================
#include<studio.h>
#include<conio.h>
void main()
{
int a,b=0,c;
clrscr();
printf("\n a= ");
scanf("%d",&a);
while(a>0)
{
c=a%10;
printf("\n %d%d", c,b);
b=b*10+c;
a=a/10;
printf("%d",a);
getch();
}
printf("%d",b);
getch();
}
0 comments:
Post a Comment