I Googled the words 'javascript' and 'factorial' and (not surprisingly) got
at least 100 satisfactory solutions.

It's okay to learn coding practices by example, but at least put *some*
effort into it before you ask the list.





-----Original Message-----
From: Kasey Clark [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 13, 2008 12:22 PM
To: Javascript
Subject: HELP!


Can anyone tell me how to do factorials in javascript? I have to write a
javascript program that when the user enters a number, it computes the
multiplication of all the numbers between 1 and that number and displays the
result to the user (in a text box). My HTML part is done, just not the
javascript. (example if the uder enters 5 in the first text box, the program
displays 120 in the second text box: 1x2x3x4x5) 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:5226
Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33

Reply via email to