Thursday, March 3, 2016

Continue example in C

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#include<stdio.h>

main()
{
 int i;
 for(i=1; i<=10; i++){
  if(i==6 || i==7){
   continue;
  }
  else printf("%d\n",i);
 }
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)