Sunday, 9 November 2014

goto statement in c.

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();

            }

No comments:

Post a Comment