Print 1,10,100,1000.
#include<stdio.h>
#include<conio.h>
void main()
{
int i=10;
xyz:
printf("%d",i);
i=i*10;
if(i<=1000)
{
goto xyz;
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int i=10;
xyz:
printf("%d",i);
i=i*10;
if(i<=1000)
{
goto xyz;
}
getch();
}
No comments:
Post a Comment