Advertisement
thenewboston

C Programming Tutorial - 30 - continue

Aug 22nd, 2014
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <ctype.h>
  4. #include <string.h>
  5. #include <math.h>
  6.  
  7. int main()
  8. {
  9.     int num = 1;
  10.  
  11.     do{
  12.         if(num==6 || num==8){
  13.             num++;
  14.             continue;
  15.         }
  16.         printf("%d is available \n", num);
  17.         num++;
  18.     }while(num<10);
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement