#include <iostream>using namespace std; int main() {for (int i=1; i<51; i=i+2)cout<<i<<endl;return 0;}
Standard input is empty
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!