uses crt;
var n:integer;
a,b,x:real;
begin
write('n=');
readln(n);
x:=1;
for n:=1 to n do
x:=x*((2*n)/(2*n+1));
writeln(' x=',x:4:1);
end.
или
write(' n='); readln(n);
x:=2*n/2*n+1;
Объяснение:
uses crt;
var n:integer;
a,b,x:real;
begin
write('n=');
readln(n);
x:=1;
for n:=1 to n do
x:=x*((2*n)/(2*n+1));
writeln(' x=',x:4:1);
end.
или
uses crt;
var n:integer;
a,b,x:real;
begin
write(' n='); readln(n);
for n:=1 to n do
x:=2*n/2*n+1;
writeln(' x=',x:4:1);
end.
Объяснение: