fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // implementation of code starts from here
  5.  
  6. printf("printing odd numbers from 1 to 10\n");
  7. for(int i=1;i<=10;i++){
  8. if(i%2==0){
  9. continue;
  10. }
  11. printf("%d\n",i);
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5408KB
stdin
Standard input is empty
stdout
printing odd numbers from 1 to 10
1
3
5
7
9