WAP to illustrate the use of CONTINUE and BREAK statement using IF Else

/*WAP to illustrate the use of CONTINUE and BREAK statement using IF Else*/
#include<stdio.h>
#include<conio.h>

void main()

{
 int x=5,y=7,z=8;
 clrscr();
 for(;50<100;x++,y++)
 {
 while(y>=x)
 {
 printf("\n%d%d%d",x,y,z);
 y--;
 break;
 }
 if(x==5)
  break;
 else
  continue;
 }
 getch();
}

No comments:

Post a Comment