Anonymous user
Loops/Nested: Difference between revisions
→{{header|BBC BASIC}}
(Added BBC BASIC) |
|||
Line 145:
FOR row% = 0 TO 10
FOR col% = 0 TO 10
PRINT "row "; row%, "col ";col%, "value "; array(row%,col%)
IF array(row%,col%) = 20 EXIT FOR row%
NEXT
NEXT row%
</lang>
EXIT FOR can jump out of multiple nested loops by specifying a control variable.
|