Article View: chile.comp.programacion
Article #203Re: problema con for de novato
From: tikitaka
Date: Sun, 30 Aug 2009 22:41
Date: Sun, 30 Aug 2009 22:41
33 lines
1898 bytes
1898 bytes
Si vi las im�genes, ten�a que hacerlo para entender para donde iba el
asunto
"Rick_oj" <rick_oj@[sin-esto]tutopia.com> escribi� en el mensaje
news:h7etpb$76v$1@news.nivel5.cl...
>
> "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:
<h7ev75$79a$1@news.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news-xfer.nntp.sonic.net!news.kjsl.com!news.nivel5.cl!not-for-mailReferences:
<h7egt7$6b4$1@news.nivel5.cl> <h7erbi$716$1@news.nivel5.cl> <h7etpb$76v$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!news.glorb.com!news-xfer.nntp.sonic.net!news.kjsl.com!news.nivel5.cl!not-for-mail From: "tikitaka" <tikitaka@hotmail.com> Newsgroups: chile.comp.programacion Subject: Re: problema con for de novato Date: Sun, 30 Aug 2009 18:41:41 -0400 Organization: Varios Lines: 35 Message-ID: <h7ev75$79a$1@news.nivel5.cl> References: <h7egt7$6b4$1@news.nivel5.cl> <h7erbi$716$1@news.nivel5.cl> <h7etpb$76v$1@news.nivel5.cl> NNTP-Posting-Host: pc-138-237-239-201.cm.vtr.net X-Trace: news.nivel5.cl 1251672101 7466 201.239.237.138 (30 Aug 2009 22:41:41 GMT) X-Complaints-To: news@news.nivel5.cl NNTP-Posting-Date: Sun, 30 Aug 2009 22:41:41 +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