RosettaCodeData/Task/Create-a-two-dimensional-ar.../True-BASIC/create-a-two-dimensional-ar...

8 lines
220 B
Plaintext

INPUT prompt "Enter two positive integers, separated by a comma ": i, j
DIM array(0,0)
MAT REDIM array(1 TO i, 1 TO j)
LET array(i, j) = i*j
PRINT "a("; STR$(i); ","; STR$(j); ") ="; array(i, j)
MAT REDIM array(0,0)
END