Код: Выделить всё
max_zero:=0;
for i:= 1 to mi do begin
zero:=0;
for j:= 1 to mj do if a[i,j]=0 then inc(zero);
if zero>ax_zero then begin
max:=i;
max_zero:=zero;
end;
end;
Writeln('Minimalno nenulevih elementov v stroke №',max);
Код: Выделить всё
max_zero:=0;
for i:= 1 to mi do begin
zero:=0;
for j:= 1 to mj do if a[i,j]=0 then inc(zero);
if zero>ax_zero then begin
max:=i;
max_zero:=zero;
end;
end;
Writeln('Minimalno nenulevih elementov v stroke №',max);
Код: Выделить всё
while (n1 mod n2)<>0 do
begin
...
end;
Код: Выделить всё
repeat
...
until (n1 mod n2)=0;
Код: Выделить всё
if (n1 mod n2)<>0 then
repeat
...
until (n1 mod n2)=0;