Advertisement
Sabbir-bin

print odd number

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