Skip to content

Commit 2f7ef73

Browse files
author
Svetlin Nakov
committed
Updates Content/Chapter-6-1-nested-loops/nested-loops/nested-loops.md
Auto commit by GitBook Editor
1 parent 45ec08b commit 2f7ef73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Content/Chapter-6-1-nested-loops/nested-loops/nested-loops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A **nested loop** is a construction where **in the body of one loop** (outer one
44

55
* When nested loops start executing, **the outer loop starts** first: the controlling variable is **initialized** and after a check for ending the loop the code in its body is executed.
66
* After that, **the inner loop is executed**. The controlling variables start position is initialized, a check for ending the loop is made and the code in its body is executed.
7-
* When reaching the the set value for **ending the loop**, the program goes back one step up and continues executing the previous \(outer\) loop. The controlling variable of the outer loop changes with one step, a check is made to see if the condition for ending the loop is met and **a new execution of the nested \(inner\) loop is started**.
7+
* When reaching the specified value for **ending the loop**, the program goes back one step up and continues executing the previous \(outer\) loop. The controlling variable of the outer loop changes with one step, a check is made to see if the condition for ending the loop is met and **a new execution of the nested \(inner\) loop is started**.
88
* This is repeated until the variable of the outer loop meets the condition to **end the loop**.
99

1010
## Video: Nested Loops

0 commit comments

Comments
 (0)