var n, k: integer;
s: real;
begin
read(n);
s := 0;
for k:=1 to n do s += (k+1) / (k*k+1);
write(s:0:2);
end.При n=9 вывод будет 3.13
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var n, k: integer;
s: real;
begin
read(n);
s := 0;
for k:=1 to n do s += (k+1) / (k*k+1);
write(s:0:2);
end.
При n=9 вывод будет 3.13