Программа:
Pascal:
var
i, n: integer;
S: real;
begin
write('n = '); readln(n);
for i := 1 to n do S := S + (1 + i)/(2 + i);
writeln(S);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
Pascal:
var
i, n: integer;
S: real;
begin
write('n = '); readln(n);
for i := 1 to n do S := S + (1 + i)/(2 + i);
writeln(S);
end.