Const n=10;
var a:array[1..n] of integer;
i, max, min : integer;
begin
for i:=1 to n do begin
a[i]:=random(11);
write(a[i]);
end;
writeln;
min:=10;
max:=0;
for i:=1 to n do begin
if a[i] if a[i]>max then max:=a[i];
end;
write('Min: ', min, ', Max: ', max);
end.