Jump to content

Loops/Nested: Difference between revisions

m
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-BAsicBASIC allows alphanumeric line numbers as the target
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 "Sentinaltarget value"; MAXVAL; " not found!"
 
end
Line 3,599:
1 2 7 20
</pre>
 
 
=={{header|Scala}}==
211

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.