program z1;
var
mas:array[1..5]of integer; //5 элементов
i, n:integer;
begin
Writeln('Введите элементы массива');
n :=0;
for i :=1 to 10 do
begin
mas[i]:=random(10);
Write('->');
Write(mas[i]);
if mas[i]<=5 then
inc(n);
end;
Writeln;
Writeln ('Отрицат. элем. всего: ',n);
Readln;
end.
CnByb2dyYW0gejE7CnZhcgptYXM6YXJyYXlbMS4uNV1vZiBpbnRlZ2VyOyAvLzUg0Y3Qu9C10LzQtdC90YLQvtCyCmksIG46aW50ZWdlcjsKYmVnaW4KV3JpdGVsbign0JLQstC10LTQuNGC0LUg0Y3Qu9C10LzQtdC90YLRiyDQvNCw0YHRgdC40LLQsCcpOwpuIDo9MDsKZm9yIGkgOj0xIHRvIDEwIGRvCmJlZ2luCm1hc1tpXTo9cmFuZG9tKDEwKTsKV3JpdGUoJy0+Jyk7CldyaXRlKG1hc1tpXSk7CmlmIG1hc1tpXTw9NSB0aGVuCmluYyhuKTsKZW5kOwpXcml0ZWxuOwpXcml0ZWxuICgn0J7RgtGA0LjRhtCw0YIuINGN0LvQtdC8LiDQstGB0LXQs9C+OiAnLG4pOwpSZWFkbG47CmVuZC4gIAo=