program pr1;varm:array[1..100] of integer;i,sum:integer;beginrandomize;for i:=1 to 20 dom[i]:=random(10);for i:=1 to 20 dobeginwrite(m[i],' ');if i mod 2 =0 then sum:=sum+m[i];end;writeln('');writeln(sum);readln;end.
program pr1;
var
m:array[1..100] of integer;
i,sum:integer;
begin
randomize;
for i:=1 to 20 do
m[i]:=random(10);
for i:=1 to 20 do
begin
write(m[i],' ');
if i mod 2 =0 then sum:=sum+m[i];
end;
writeln('');
writeln(sum);
readln;
end.