How do nested loops work?

2 posts were split to a new topic: Why is this one wrong?