Skip to content

Loops inside loops

Read · 1 of 4

Rows and columns

Put one loop inside another and the inner loop runs completely for every round of the outer one.

Think of the outer loop as rows and the inner loop as the items in a row. End each row with a new line.