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 inside 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.