Program n1; const n=5; var a: array[1..n,1..n] of integer; i,max,j: integer; begin randomize; for i:=1 to n do begin for j:=1 to n do begin a[i,j]:=random(100); write(a[i,j],' '); end; writeln; end; max:=a[1,1]; for i:=1 to n do for j:=1 to n do if a[i,j]>max then max:=a[i,j]; write('max=',max); end.
const n=5;
var a: array[1..n,1..n] of integer;
i,max,j: integer;
begin
randomize;
for i:=1 to n do begin
for j:=1 to n do begin
a[i,j]:=random(100);
write(a[i,j],' ');
end;
writeln;
end;
max:=a[1,1];
for i:=1 to n do for j:=1 to n do if a[i,j]>max then max:=a[i,j];
write('max=',max);
end.