##### Filling a matrix with values from the keyboard

Let the program receive a two-dimensional array as input, in the form of `n`

lines, each of which contains `m`

numbers separated by spaces. You can save such data to a two-dimensional array like this:

read(n, m);
set length(a, n);
for i:= 0 to n - 1 do begin
setlength(a[i], m);
for j := 0 to m - 1 do read(a[i][j]);
end;