questions about continue

+2 Mostafa Mohsen · February 4, 2015
Hi guys  
I have question about (continue) when i write  this code that is the  same in C Programming Tutorial - 30

#include <stdio.h>
#include <stdlib.h>

int main()
{
  int num =1;
  do{
    if(num==6|| num==8){
        num++;
       continue;
    }
    printf("%d num is \n",num);
    num++;
  }
  while(num<=10);
    return 0;
}


it gives me  the same result  when i write  the code without (continue) why or what is the different  ? 

Post a Reply

Replies

Oldest  Newest  Rating
0 Mostafa Mohsen · February 7, 2015
thank you
  • 1

C

107,060 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator