 PRINT "X/Y"
            PRINT X
            PRINT Y
        NEXT Y
    NEXT X
    END
</code></pre>
<p>A FOR loop can go inside a WHILE loop, and a DO loop can go inside a FOR loop. In fact, any such combination of loops is allowed. If you use your TAB key properly, you'll find it easier to keep track of which line belongs to which loop.</p>
<h2><a name="7.9">7.9 FOR EACH loops</a></h2>
<p>There is a second type of FOR loop which we'll discuss when we <a href="ch09.html">get to arrays</a>.</p>
<hr>
<p><a h