1.
Program HOC24;
var i,n: integer;
t: longint;
begin
write('n='); readln(n);
t:=0;
for i:=1 to n do t:=t+i;
write(t);
readln
end.
2.
Program HOC24;
var i,n: integer;
t: real;
begin
write('n='); readln(n);
t:=0;
for i:=1 to n do t:=t+1/i;
write(t:1:2);
readln;
end.