program n1;
var
A: array [1..6,1..6] of integer;
i, j, k, min: integer;
begin
for i := 1 to 6 do begin
for j := 1 to 6 do begin
A[i, j]:= Random(101)-50;
write (A [i,j]:4); end;
writeln; end;
k := 0;
for i := 1 to 6 do
if A[i, 2]<0 then k := k+1;</p>
min := A[1, 1];
for i := 1 to 6 do begin
for j := 1 to 6 do
if A[i, j]
for i := 1 to 6 do
for j := 1 to 6 do
if A[i, j]>0 then A[i, j] := min;
writeln ('k=', k);
writeln;
for i := 1 to 6 do begin
for j := 1 to 6 do begin
write (A [i,j]:4); end;
writeln; end;
END.