Ответ:
--- PascalABC.NET 3.6.2 ---
begin
var (neg, pos) := (0, 0);
var n := ReadInteger();
ArrRandomReal(n, -99, 99).Println.ForEach(p -> begin if (p < 0) then neg += 1 else pos += 1 end);
Print($'Positive numbers: {pos}; Negative: {neg}');
end.
Объяснение: