1)
Var
n:integer;
S:real;
Begin
Write('n = ');
ReadLn(n);
S:=0;
For n:= 1 to n do
S:=S+n/(n+1);
WriteLn('S = ',S);
End.
2)
Var
n:integer;
P:real;
Begin
Write('n = ');
ReadLn(n);
P:=1;
For n:= 2 to n do
Begin
P:=P*(1+1/(n*n));
End;
WriteLn('P = ',P);
End.