program SumOfSeries;
varN, i: integer;S, denominator: real;
beginwrite('Enter the value of N: ');readln(N);
S := 0;denominator := 1;
for i := 1 to N dobeginS := S + 1 / denominator;denominator := denominator + 2;end;
writeln('Sum of the series is: ', S:0:2);
end.
program SumOfSeries;
var
N, i: integer;
S, denominator: real;
begin
write('Enter the value of N: ');
readln(N);
S := 0;
denominator := 1;
for i := 1 to N do
begin
S := S + 1 / denominator;
denominator := denominator + 2;
end;
writeln('Sum of the series is: ', S:0:2);
end.