var
A: array [1..10] of Integer;
i, s: Integer;
begin
Randomize;
WriteLn ('Массив:');
for i := Low (A) to High (A) do begin
A [i] := Random (21);
Write (A [i], ' ');
end;
s := 0;
WriteLn;
WriteLn ('Нечетные элементы:');
for i := Low (A) to High (A) do begin
if i mod 2 <> 0 then begin
Write (A [i], ' ');
s := s + A [i];
end;
end;
WriteLn;
Writeln ('Сумма нечетных элементов = ', s);
end.