#include <iostream>using namespace std; int main() {for (int i=0; i<51; i=i+3)cout<<i<<endl;return 0;}
Standard input is empty
0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!