А)uses crt;
const n=20;
var a:array[1..n] of integer;
i,s,k:integer;
begin
randomize;
s:=0;
k:=0;
for i:=1 to n do
begin
a[i]:=random(100)-50;
writeln(a[i]);
end;
writeln;
for i:=1 to n do
begin
if (a[i] mod 2=0) and (i mod 2 =0) and (a[i]<0)<br>then
begin
inc(k);
s:=s+a[i];
end;
end;
writeln(s);
writeln(k);
end.
б)uses crt;
const n=20;
var a:array[1..n] of integer;
i,s,k:integer;
begin
randomize;
s:=0;
k:=0;
for i:=1 to n do
begin
a[i]:=random(100)-50;
writeln(a[i]);
end;
writeln;
for i:=1 to n do
begin
if (a[i]mod 3=0) and (a[i] mod 5<>0) then
begin
s:=s+a[i];
inc(k);
end;
end;
writeln(s);
writeln(k);
end.
в)uses crt;
const n=20;
var a:array[1..n] of integer;
i,s,k:integer;
begin
randomize;
s:=0;
k:=0;
for i:=1 to n do
begin
a[i]:=random(100)-50;
writeln(a[i]);
end;
writeln;
for i:=1 to n do
begin
if (abs(a[i]))>(i-2)
then
begin
inc(k);
s:=s+a[i];
end;
end;
writeln(s);
writeln(k);
end.