Program PARAN;
VAR S : real;
i,n: integer;
BEGIN
Writeln('UNESI N');
Readln(n);
S:=0;
i:=0;
While i<(n) do
Begin
i:=i+2;
S:=S+i;
End;
writeln('ZBIR IZNOSI:',S:8:2);
Readln;
End.
PROGRAM KROZ;
VAR S:real;
i,n:real;
BEGIN
writeln('UNESI N');
readln(n);
S:=0 ; i:=0;
while i<=(n-1) do
BEGIN
i:=i+1;
S:=S+(1/(1/(1/i)));
END;
writeln('ZBIR IZNOSI:',S:8:2);
readln;
END.
PROGRAM KROZ_KOREN;
VAR S:real;
i,n:real;
BEGIN
writeln('UNESI N');
readln(n);
S:=0 ; i:=0;
while i<=(n-1) do
BEGIN
i:=i+1;
S:=S+((i-1)/(SQRT(i)));
END;
writeln('ZBIR IZNOSI:',S:8:2);
readln;
END.
PROGRAM KROZ_SVASTA;
VAR S:real;
i,n:real;
BEGIN
writeln('UNESI N');
readln(n);
S:= 2/1/SQRT(2)/2;
i:=2;
while i<=(n-1) do
BEGIN
IF n>2 then
i:=i+1;
S:=S+(i/1/SQRT(i)/(i+1));
END;
writeln('ZBIR IZNOSI:',S:8:2);
readln;
END.
PROGRAM KROZ_SVASTA2;
VAR Z,S:real;
i,n:real;
BEGIN
writeln('UNESI N');
readln(n);
S:= (SQR(2)*2)/1/SQRT(2)/2;
i:=2;
while i<=(n-1) do
BEGIN
IF n>2 then
i:=i+1;
S:=(exp(ln (i) *(i+1))/(i-1)/SQRT(i)/(2*i));
Z:=S+Z
END;
writeln('ZBIR IZNOSI:',S:8:2);
readln;
END.
PROGRAM DOMACI1;
VAR S:real;
i,n:real;
BEGIN
writeln('UNESI N');
readln(n);
S:=0;
i:=2;
while i<=(n-1) do
BEGIN
IF n>2 then
i:=i+1;
S:=S+(i/SQRi/SQRT(i)/5;
END;
writeln('ZBIR IZNOSI:',S:8:2);
readln;
END.
Program DOMACI2;
VAR S : real;
i,n: integer;
BEGIN
Writeln('UNESI N');
Readln(n);
S:=0;
i:=0;
While i<(n) do
Begin
i:=(i+2)/7*i/SQRT(i);
S:=S+i;
End;
writeln('ZBIR IZNOSI:',S:8:2);
Readln;
End.