Making a nested loop repeat before going back to main loop

i is the loop control variable in this case. It goes from 0 to 4.

Loops can be more general than that. Try looking up "for loop".