program Algorithm;
varp, s: real;
beginp := 2;s := 0;
repeatp := p * 1.5;s := s + p;until p > 5;
writeln('S = ', s:0:2);end.
program Algorithm;
var
p, s: real;
begin
p := 2;
s := 0;
repeat
p := p * 1.5;
s := s + p;
until p > 5;
writeln('S = ', s:0:2);
end.