RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/ALGOL-M/create-a-two-dimensional-array-at-runtime.alg
2023-09-01 09:35:06 -07:00

17 lines
361 B
Text

begin
integer first, second;
write("Two Dimensional Array Exercise");
write("Length of first dimension:");
read(first);
write("Length of second dimension:");
read(second);
begin % we need to start a new block %
integer array test[1:first, 1:second];
test[1,1] := 99;
write("Stored value at 1,1 =",test[1,1]);
end; % array is now out of scope %
end