begin
var a := ArrRandom(7, 10, 15);
a.Println;
var i := a.IndexMin;
Writeln('min a[', i + 1, '] = ', a[i])
end.
begin
var a := ArrRandom(7, 10, 15);
a.Println;
var i := a.IndexMin;
Writeln('min a[', i + 1, '] = ', a[i])
end.
Пример15 12 10 13 12 13 10min a[3] = 10a: array[1..7] of integer;
i, ind: integer;
begin
for i := 1 to 7 do
read(a[i]);
ind := 1;
for i := 2 to 7 do
if a[i] < a[ind] then ind := i;
writeln(a[ind], ' ', ind);
end.