1)
var n,z:integer; i,sum:real;beginreadln (N);while (z<>n) dobeginz:=z+1;i:=1/z;sum:=sum+i;writeln (sum);end;end.
2)
var n,z:integer; i,sum:real;beginreadln (N);repeatz:=z+1;i:=1/z;sum:=sum+i;writeln (sum);until (z=n);end.
1)
var
n,z:integer;
i,sum:real;
begin
readln (N);
while (z<>n) do
begin
z:=z+1;
i:=1/z;
sum:=sum+i;
writeln (sum);
end;
end.
2)
var
n,z:integer;
i,sum:real;
begin
readln (N);
repeat
z:=z+1;
i:=1/z;
sum:=sum+i;
writeln (sum);
until (z=n);
end.