5.5k views
3 votes
How do nested loops help you code complex images?

1 Answer

6 votes
The inner loop is nested inside the outer loop. Nested loops are useful when for each pass through the outer loop, you need to repeat some action on the data in the outer loop. For example, you read a file line by and for each line you must’ve count how many times the work “the” is found.
User Sharukh Mastan
by
5.0k points