CLS INPUT a, b 'inputs need to be separated by commas DIM array (1 TO a, 1 TO b) array(1,1) = 42 PRINT array(1,1) ERASE array