const n=10;
var a:array[1..n] of integer;
i,k: integer;
begin
for i:=1 to n do
a[i]:=random(21)-10;
if a[i]<0 then k:=k+1;
write(a[i]:5)
end;
writeln;
writeln (k)
end.
const n=10;
var a:array[1..n] of integer;
i,k: integer;
begin
for i:=1 to n do
begin
a[i]:=random(21)-10;
if a[i]<0 then k:=k+1;
write(a[i]:5)
end;
writeln;
writeln (k)
end.