/*Just an example of continue
statmenrt.*/
#include <stdio.h>
#include <conio.h>
int main()
{
int val;
for(val = 1 ; val <=10 ; val++)
{
if (val == 3)
{
continue;
}
printf("%d ",val);
}
getche();
return 0;
}
/*Output will be the counting from 1 to
10 except 3.*/
No comments:
Post a Comment