Объяснение:
var b, q, s: real;
i, n, k: integer;
begin
b := 5;
q := 1.1;
s := b;
i := 1;
while (b
begin
inc(i);
b := b * q;
if (n = 0) and (b > 20) then n := i;
s := s + b;
if (k = 0) and (s > 100) then k := i
end;
writeln('More than 20 km in one day: ', n, ', more than 100 km totally: ', k);
readln
end.