Friday, March 5, 2010

54

int main()
{
int i;
for(i=1;i<10;i++)
{
if(i<4)
{
continue;
printf(" %d",i);
}
else
{
printf("%d",i);
break;
}
}
return 0;
}

Output:


4
Logic
To understand the logic of the program,
know what is meant by break , continue statement.
Break Tutorial
Continue Tutorial

0 comments:

Post a Comment