Алексей Громов
Скажите, как нарастить "i", если значение "pos" >0?
Var s: string;
i,j: integer;
begin
i:=0;
readln(s);
pos('0',s);
if pos>0 then
inc(i);
writeln(i);
end.
Var s: string;
i,j: integer;
begin
i:=0;
readln(s);
pos('0',s);
if pos>0 then
inc(i);
writeln(i);
end.
WTF
...
readln(s); i:=0;
while pos('0',s) do inc(i);
writeln(i); readln;
...
поиск (подсчет) нулей (или буквы о хз что там у тебя) в строке s