fork download
  1. // task 1: Print all odd numbers from 1 to 19
  2. #include<stdio.h>
  3. int main(){
  4. int i;
  5. printf("All odd numbers from 1 to 19 :");
  6. for(i=1; i<=19; i+=2){
  7. printf("%d ",i);
  8. }
  9. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
All odd numbers from 1 to 19 :1 3 5 7 9 11 13 15 17 19