//Pascal
var
A: array [1..10] of byte;
i, min, max: byte;
begin
randomize;
min := 101; max := 0;
for i := 1 to 10 do
begin
A[i] := random(101);
if ((A[i] < min) and (A[i] mod 2 <> 0)) then min := A[i];
if ((A[i] > max) and (A[i] mod 2 = 0)) then max := A[i];
write(A[i], ' ');
end;
writeln;
writeln('Максимальный четный = ', max);
writeln('Минимальный нечетный = ', min);
readln;
end.