Loops/Nested: Difference between revisions
m
→{{header|S-BASIC}}
No edit summary |
|||
Line 3,561:
dim integer table(ROWS, COLUMNS)
rem - populate table using nested FOR..NEXT loops
for i=1 to ROWS
Line 3,569:
next i
rem - show results using nested WHILE..DO loops
i = 1
Line 3,586:
comment
Although S-
of a GOTO or GOSUB statement, the first "digit" must in fact be
a number, as shown here.
end
0done if i > ROWS then print "
end
Line 3,599:
1 2 7 20
</pre>
=={{header|Scala}}==
|