câu2
var n,i:integer;
s:real;
begin
write('n=');readln(n);
s:=0;
for i:=1 to n do s:=s+(1/(i*(i+1))); writeln(' Tong la: ',s); readln; end.Câu 1:
Program HOC24 ;
var i,n : integer ;
s: real;
begin
write('nhap gia tri n:'); readln(n);
S:=0;
for i:= 1 to n do
S:= S+1/(i+1) ;
write('S= ',S:6:2);
readln
end.