Page 14 - Looping by Johannes Alexander
P. 14
Nested Loop Case
Example
Here, we are using a for loop inside another for loop.
We can use the nested loop to iterate through each
day of a week for 3 weeks.
In this case, we can create a loop to iterate three
times (3 weeks). And, inside the loop, we can create
another loop to iterate 7 times (7 days).