15 Iteration (for loop) Another iteration form: the for loop Another iteration form: the for loop You can collect all the control information in one place, at the top, where its easy to see You can collect all the control information in one place, at the top, where its easy to see for (int i = 0; i<100; ++i) { cout << i << \t << square(i) << \n ; } That is, for (initialize; condition ; increment ) controlled statement Note: what is square(i).
{}