#include <iostream>using namespace std;int main(){for (int i=1;i<=10;i++){if (i%2!=0) cout<<i<<" ";} return 0;}
Standard input is empty
1 3 5 7 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!