🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #202

Re: problema con for de novato

#202
From: Rickoj
Date: Sun, 30 Aug 2009 22:17
26 lines
1726 bytes
"tikitaka" <tikitaka@hotmail.com> escribi� en el mensaje 
news:h7erbi$716$1@news.nivel5.cl...
> No s� si entend� bien lo que quieres, pero ac� va mi respuesta seg�n lo 
> que entend�, ya ver�s tu si te sirve o no
>
> un for para la sumatoria, y otro for para la multiplicaci�n, deben estar 
> anidados.
> La sumatoria parte con 0, y  la multiplicaci�n parte con 1
>
> s = 0;
> for(i=1 ; i <= dt ; i++)
> {
>    r = 1;
>    for(j = 0; j<i ; j++)
>    {
>        r = r* Wt(j+1)/Wt(j)
>    }
>    s = s+r
> }
>
> Nt = 1 + s;
>
> saludos.

voy a probar y te aviso, viste la imagen o no?
Technical Details
Message-ID: <h7etpb$76v$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.mixmin.net!vps.linfati.cl!news.nivel5.cl!not-for-mail
References: <h7egt7$6b4$1@news.nivel5.cl> <h7erbi$716$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: e499fe1f24,4839c44b46ec2a64
X-Google-Attributes: gide499fe1f24,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.mixmin.net!vps.linfati.cl!news.nivel5.cl!not-for-mail
From: "Rick_oj" <rick_oj@[sin-esto]tutopia.com>
Newsgroups: chile.comp.programacion
Subject: Re: problema con for de novato
Date: Sun, 30 Aug 2009 18:17:11 -0400
Organization: Varios
Lines: 28
Message-ID: <h7etpb$76v$1@news.nivel5.cl>
References: <h7egt7$6b4$1@news.nivel5.cl> <h7erbi$716$1@news.nivel5.cl>
NNTP-Posting-Host: pc-51-70-160-190.cm.vtr.net
X-Trace: news.nivel5.cl 1251670635 7391 190.160.70.51 (30 Aug 2009 22:17:15 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Sun, 30 Aug 2009 22:17:15 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response