program OddProduct;constn = 3;m = 3;varmatrix: array[1..n, 1..m] of real;i, j: integer;product: real;beginproduct := 1;
for i := 1 to n dobeginfor j := 1 to m dobeginwrite('Enter element ', i, ',', j, ': ');readln(matrix[i, j]);
end;
writeln('Product of odd elements with remainder 2 mod 3: ', product:0:2);end.
program OddProduct;
const
n = 3;
m = 3;
var
matrix: array[1..n, 1..m] of real;
i, j: integer;
product: real;
begin
product := 1;
for i := 1 to n do
if (matrix[i, j] mod 3 = 2) and (trunc(matrix[i, j]) mod 2 <> 0) thenbegin
for j := 1 to m do
begin
write('Enter element ', i, ',', j, ': ');
readln(matrix[i, j]);
product := product * matrix[i, j];
end;
end;
writeln('Product of odd elements with remainder 2 mod 3: ', product:0:2);
end.