Wednesday 25 March 2015

program for using continue keyword

#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
for(i=1;i<=10;i++)
{
if(i==5)
{
continue; /*continue is use to hide the number from loop which un want
 */
}
printf("%d \t",i);
}
getch();
}

No comments:

Post a Comment