Var a: array [1..5, 1..5] of integer;
i, m, j: integer;
begin
for i := 1 to 5 do
for j := 1 to 5 do
begin
a[i, j] := random(50) - 25;
writeln('[', i, ',', j, '] => ', a[i, j]);
end;
for i := 1 to 5 do
for j := 1 to 5 do
if (a[i, j] mod 2 = 0) then a[i, j] := 30;
writeln();
for i := 1 to 5 do
for j := 1 to 5 do
writeln('[', i, ',', j, '] => ', a[i, j]);
end.
Для второго не понял, как решать ._.