fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int X,Y;
  6. scanf("%d",&X);
  7. if (X>=1 && X<=1000)
  8. {
  9. for (Y=1;Y<=X;Y++)
  10. {
  11. if(Y%2!=0)
  12. {
  13. printf("%d\n",Y);
  14. }
  15. }
  16. return 0;
  17. }
  18. }
Success #stdin #stdout 0s 4512KB
stdin
Standard input is empty
stdout
Standard output is empty