Lesson 18: for loop
When you know how many times to repeat, for is handy: it packs three things on one line — for (int i = 0; i < n; i++). Part 1: start (int i = 0). Part 2: keep-going test (i < n). Part 3: step after each round (i++). The three parts are separated by semicolons.