i have an array, made up of a user-determined number of user-determined numbers. what they want me to do is write code to calculate the factorial of a user determined position (ie. the factorial of position 3 [ie. position3*position2*position1]).
what i have now is the extremely iffy code:
i know that the way they are multiplied right now doesn't make sense, but i have been trying to work it all different kinds of ways.
var i = window.prompt("Factorial from what position?");
document.write("product of a factorial done from position " + (i) + ":<br />")
i have to turn it in in an hour or so, quick responses = sexual favor!!! haha