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:5225 Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33
