Ответ:
var i, n, pro: integer;
a: array [1..10] of integer;
begin
n:=9;
pro:=1;
for i:=1 to n do
a[i]:=random (10)-5;
write (a[i]:4);
if a[i] < 0 then pro:=pro*a[i];
end;
writeln;
writeln (pro);
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
var i, n, pro: integer;
a: array [1..10] of integer;
begin
n:=9;
pro:=1;
for i:=1 to n do
begin
a[i]:=random (10)-5;
write (a[i]:4);
if a[i] < 0 then pro:=pro*a[i];
end;
writeln;
writeln (pro);
end.