Create a two-dimensional array at runtime: Difference between revisions

Content added Content deleted
(Added S-BASIC example)
m (→‎{{header|S-BASIC}}: added comment)
Line 3,202: Line 3,202:
dim integer test_array(a, b)
dim integer test_array(a, b)


test_array(1,1) = 99
test_array(1,1) = 99 rem S-BASIC arrays are indexed from 1


print "Value stored at 1,1 ="; test_array(1,1)
print "Value stored at 1,1 ="; test_array(1,1)
Line 3,215: Line 3,215:
Value stored at 1,1 = 99
Value stored at 1,1 = 99
</pre>
</pre>



=={{header|Scala}}==
=={{header|Scala}}==