Код полностью
var
a: array[1..10] of integer;
x, y, i, s: integer;
begin
a[1] := 10;
x := 3;
y := -1;
for i := 2 to 10 do
begin
x := x + 2;
y := y * (-1);
a[i] := a[i - 1] - x * y;
write(a[i], );
if i mod 2 = 0 then s := s + a[i];
end;
writeln;
writeln(s);
end.
Ответ 5