RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/QBasic/create-a-two-dimensional-array-at-runtime.basic

6 lines
178 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
INPUT "Enter two positive integers, separated by a comma"; i, j
DIM array(1 TO i, 1 TO j)
array(i, j) = i * j
PRINT "a("; STR$(i); ","; STR$(j); " ) = "; array(i, j)
ERASE array