Advertisement
mominulkarim77

Problem with loop+if

Mar 2nd, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1.  #include <stdio.h>  
  2.  int main()  
  3.  {  
  4.      int n = 0;  
  5.      while (n < 10) {  
  6.          n = n + 1;  
  7.          if (n % 2 == 0) {  
  8.              continue;  
  9.          }  
  10.          printf("%d\n", n);  
  11.      }  
  12.      return 0;  
  13.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement