Ответ:
program z1;
var a:array [1..100,1..100] of integer;
b:array [1..100] of integer;
n,m,i,j,s:integer;
begin
write ('Введите количество строк (n
read (n);
write ('Введите количество столбцов (m
read (m);
writeln ('Массив А');
for i:= 1 to n do
begin
for j:=1 to m do
begin
a[i,j]:=Random(19)-9;
write(a[i,j]:4)
end;
writeln
end;
for j:= 1 to m do
begin
s:=0;
for i:=1 to n do if (a[i,j]>0) and (a[i,j] mod 2 = 0) then s:=s+a[i,j];
b[j]:=s
end;
writeln ('Массив B');
for j:= 1 to m do write (b[j]:4)
end.