var a:array [1..10] of integer;
i,s:integer;
begin
for i:=1 to 10 do
readln(a[i]);
if i mod 2=0 then s:=s+a[i];
end;
writeln(a[i]);
end.
Uses crt;var a:array[1..10] of real;i:integer; s:real;begin
writeln('Введите массив:'); for i:=1 to 10 do begin readln(a[i]); if (i mod 2=0) then s:=s+a[i]; end; writeln; write('Summa=',s);end.
var a:array [1..10] of integer;
i,s:integer;
begin
for i:=1 to 10 do
begin
readln(a[i]);
if i mod 2=0 then s:=s+a[i];
end;
writeln(a[i]);
end.
Uses crt;
var a:array[1..10] of real;
i:integer; s:real;
begin
writeln('Введите массив:');
for i:=1 to 10 do
begin
readln(a[i]);
if (i mod 2=0) then s:=s+a[i];
end;
writeln;
write('Summa=',s);
end.