program raf105;
var
i,n: integer;
sum: real;
begin
write('n = ');
readln(n);
for i:=1 to n do
sum:= sum + (i+1)/i;
writeln('Вывод: ',sum);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program raf105;
var
i,n: integer;
sum: real;
begin
write('n = ');
readln(n);
for i:=1 to n do
sum:= sum + (i+1)/i;
writeln('Вывод: ',sum);
end.
PascalABC 3.4.2