RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/Seed7/create-a-two-dimensional-array-at-runtime.seed7
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

16 lines
464 B
Text

$ include "seed7_05.s7i";
const proc: main is func
local
var integer: numRows is 0;
var integer: numCols is 0;
var array array integer: anArray is 0 times 0 times 0;
begin
write("Give me the numer of rows: ");
readln(numRows);
write("Give me the numer of columns: ");
readln(numCols);
anArray := numRows times numCols times 0;
anArray[1][1] := 3;
writeln("The number at place [1, 1] is " <& anArray[1][1]);
end func;