fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. for (int i=1;i<=10;i++)
  6. {
  7. if (i%2!=0)
  8.  
  9. cout<<i<<" ";
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5296KB
stdin
Standard input is empty
stdout
1 3 5 7 9