(Si hice algo mal, no duden en decirme por favor)
{*
* Copyright (c) 2011, Necro
*
* This file is part of Free Software
*
* This file is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with AcademicCAD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*}
program sumatoria;
var
k: real;
suma: real;
begin
k:=1;
suma:=0;
while suma <= 10000000 do
begin
suma := suma + (((k*k) + 1) /k);
k:= k+1;
writeln(suma);
end;
end.
Bueno ya pasaron varios dias, quizas te sirva esto y ojala que no lo tengas como tarea pero bueno al fin y al cabo el que aprende soy yo (H)... jajajaja xD!, pero tarde o temprano las consecuencias vendran
! jejeje