const n=5; m=3;
var a:array [1..n,1..m] of integer;
i,j,e:integer;
begin
for i:= 1 to n do
for j:=1 to m do
a[i,j]:=Random(51)+50;
write(a[i,j]:4)
end;
writeln;
e:=a[1,1];
if a[i,j]<e then e:=a[i,j];
writeln ('Наименьший элемент: ',e)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
const n=5; m=3;
var a:array [1..n,1..m] of integer;
i,j,e:integer;
begin
for i:= 1 to n do
begin
for j:=1 to m do
begin
a[i,j]:=Random(51)+50;
write(a[i,j]:4)
end;
writeln;
end;
e:=a[1,1];
for i:= 1 to n do
for j:=1 to m do
if a[i,j]<e then e:=a[i,j];
writeln ('Наименьший элемент: ',e)
end.