RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/PL-I/create-a-two-dimensional-array-at-runtime-5.pli

12 lines
242 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
/* Third way using a PROCEDURE block: */
get list (m, n);
call S (m, n);
S: procedure (m, n);
declare A(m, n) float;
get list (A);
put skip list (A);
end S;
/* The array is automatically destroyed when the procedure terminates. */