program bai1;
var i,n:longint;s:real;
begin
write('N= ');
readln(n);
s:=1;
for i:=2 to n do s:=s+1/i;
write('s= ',s);
readln
end.
var i,n:integer; t:tong;
begin
readln(n); s:=0;
for i:=1 to n do t:=t+1/i;
writeln(t);
end.
var n,t,s:integer;
begin
write('n=');readln(n);
t:=0;
for i:=1 to n do t:=t+1/i;
writeln(' Tong la: ',s);
readln;
end.
mik gửi lại
var n,i,t:integer;
begin
write('n=');readln(n);
t:=0;
for i:=1 to n do t:=t+1/i;
writeln(' Tong la: ',t);
readln;
end.