Nested WHile Loops

After My first Topic.
I think I should actually ask this question.

Can someone explain to me how a nested while loop works, like with a diagram or something.

I understand how a while loop works.

But how does A Nested While Loop work.
Think of the inner while loop as a single statement, inside the outer while loop. So, on the first iteration of the outer loop, the inner loop will execute in its entirety, just like every other statement in the outer loop.

Then, on the second iteration, the inner loop will execute in its entirety again, just like every other statement in the outer loop.

And so on...
Topic archived. No new replies allowed.