for i := 1 to n1 do
for j := 1 to n2 do
read(dat, C[i, j]);
for i := 1 to n1 do
begin
for j := 1 to n2 do
begin
write(res, '', C[i, j]:5);
write(res, ' ');
end;
writeln(res, '');
end;
proverka(C, n1, n2, flag);
poiskstrok(C, n1, n2, nomer);
if (flag = true) then writeln(res,'Vse stroki sodersh otr element')
else
writeln(res,'Nomer pervoi stroki bez otric elem =', k);
CloseFile(dat);CloseFile(res);
readln;
end.