can anyone tell me how to do a factorial using a for loop?
I understand how to make a list adding a number to each line such as
for (i = 0; i <= 5; i++)
{
document.write("The number is " + i)
document.write("<br>")
}
but can anyone tell me how to do a factorial using a for loop???
