goto statement in c.
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;
xyz:
printf("%d",i);
i=i+1;
if(i<=5)
{
goto xyz;
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;
xyz:
printf("%d",i);
i=i+1;
if(i<=5)
{
goto xyz;
}
getch();
}
No comments:
Post a Comment