A natural extension of the loops we have used so far is a construction which has a loop within a loop, within a loop, and so on. This type of construction is referred to as nested loops, because each loop nests insides another loop. The terms outer loop and inner loop are used to describe a loop containing another loop, and a loop which is inside another loop, respectively. Program 7.1 shows a program with two loops.
Weitere Kapitel dieses Buchs durch Wischen aufrufen
- Nested loops and addressing modes
- Macmillan Education UK
Neuer Inhalt/© ITandMEDIA