Uses crt; var a: array[1..5, 1..5] of integer; i, j: integer; begin for i := 1 to 5 do begin for j := 1 to 5 do begin a[i, j] := 1 + random(9); write(a[i, j]:4); end; writeln; end; writeln; for j := 1 to 5 do begin for i := 1 to 5 do write(a[i, j]:4); writeln; end end.
var a: array[1..5, 1..5] of integer;
i, j: integer;
begin
for i := 1 to 5 do begin
for j := 1 to 5 do begin
a[i, j] := 1 + random(9);
write(a[i, j]:4);
end;
writeln;
end;
writeln;
for j := 1 to 5 do begin
for i := 1 to 5 do
write(a[i, j]:4);
writeln;
end
end.