Program z1;
var
i, j, p: integer;
a: array[1..6, 1..3] of integer;
begin
p := 1;
i := 1;
j := 1;
while i <= 6 do<br>begin
while j <= 3 do<br> begin
write('a[',i,'][',j,']=');
readln(a[i,j]);
j := j + 1;
end;
i := i + 1;
end;
i := 1;
j := 1;
repeat
repeat
if a[i,j] >= 0 then
p := p * a[i,j];
j := j + 1;
until j > 3;
i := i + 1;
until i > 6;
writeln('произведение неотрицательных элементов: ',p);
end.