for n:=1 to M do beginS:=M/(sqr(n));Label6.Caption:=FloatToStr(S);end;
S := 0;for n:=1 to M do beginS:=S + M/(sqr(n));end;Label6.Caption:=FloatToStr(S);
S := 0;for n:=1 to M do S:=S + M/(sqr(n));Label6.Caption:=FloatToStr(S);