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