program z1;
var a: array [1..4,1..4] of integer;
i,j,k,mi,mj: integer;
begin
mi:=0;
mj:=0;
k:=0;
for i:=1 to 4 do
for j:=1 to 4 do
a[i,j]:=random(90)+10;
write(a[i,j],' ');
if i+j=5 then
if k=0 then
mi:=i;
mj:=j
end;
if a[i,j]<a[mi,mj] then
k:=1
end
writeln
writeln ('a[',mi,',',mj,']=',a[mi,mj]);
end.
program z1;
var a: array [1..4,1..4] of integer;
i,j,k,mi,mj: integer;
begin
mi:=0;
mj:=0;
k:=0;
for i:=1 to 4 do
begin
for j:=1 to 4 do
begin
a[i,j]:=random(90)+10;
write(a[i,j],' ');
if i+j=5 then
begin
if k=0 then
begin
mi:=i;
mj:=j
end;
if a[i,j]<a[mi,mj] then
begin
mi:=i;
mj:=j
end;
k:=1
end
end;
writeln
end;
writeln ('a[',mi,',',mj,']=',a[mi,mj]);
end.