const n=10;
m=10;
var A: array [1..n,1..m] of integer;
s, i, j: integer;
begin
randomize;
for i:= 1 to n do
begin
for j:= 1 to m do
begin
A[i,j]:= -100 + random (100);
write (A[i,j]: 5);
end;
writeln;
end;
for i:= 1 to n do
begin
s:=0;
for j:= 1 to m do
if A[j,i] < 0 then s:=s+A[j,i];
Writeln;
writeln('Cумма ',i,' столбца:',' ',s);
end;
end.