program SwimDistance;
vardistance, totalDistance: real;day: integer;
begindistance := 3;totalDistance := distance;
day := 1;
while totalDistance < 30 dobegindistance := distance * 1.1;totalDistance := totalDistance + distance;day := day + 1;end;
writeln('Swimmer will swim more than 30 km by day ', day);end.
program SwimDistance;
var
distance, totalDistance: real;
day: integer;
begin
distance := 3;
totalDistance := distance;
day := 1;
while totalDistance < 30 do
begin
distance := distance * 1.1;
totalDistance := totalDistance + distance;
day := day + 1;
end;
writeln('Swimmer will swim more than 30 km by day ', day);
end.