Obuchenie.doc
uchenie.dll
edge.dc
penie.dm
stihotvorenie.dos
Задание № https://yadi.sk/d/NE07UfXs3UHvU5
var a: array [1..100] of integer;
i,n,min,max:integer;
Begin
read(n);
for i := 1 to n do
read(a[i]);
min:=a[1];
max:=a[1];
for i:= 1 to n do begin
write(a[i],' ');
if max<a[i] then max:=a[i];
if min>a[i] then min:=a[i];
end;
writeln(min,max);
End.