Program Massiv;
Const N=10;Var A:array [1..N] of integer;
i, min, max:integer;
begin
for i:=1 to N do
begin
writeln('Введите',i,'-й элемент:'); readln(A[i]);
end;
min:=A[1];
max :=A[1];
for i:=2 to N do
begin
if A[i] < min then min:=A[i];
if A[i] > max then max:=A[i];
end;
writeln('Minimum=',min);
writeln('Maximum=',max);
end.