program RunnerDistance;
vardistance, i, n: integer;totalDistance: real;
begindistance := 10;totalDistance := distance;
writeln('Enter the number of days:');readln(n);
for i := 2 to n dobegindistance := round(distance * 1.1);totalDistance := totalDistance + distance;end;
writeln('Total distance run by the athlete in ', n, ' day(s): ', totalDistance:0:2, ' km');
end.
program RunnerDistance;
var
distance, i, n: integer;
totalDistance: real;
begin
distance := 10;
totalDistance := distance;
writeln('Enter the number of days:');
readln(n);
for i := 2 to n do
begin
distance := round(distance * 1.1);
totalDistance := totalDistance + distance;
end;
writeln('Total distance run by the athlete in ', n, ' day(s): ', totalDistance:0:2, ' km');
end.