Database (Recursion and Factorials)

2001-05-14 Thread lkeeton
I am currently working on a factorial procedure that figures out a factorial for a number and eventually I will store it in the mysql database. I am kind of getting caught up with this program below. I am confused how the program is executed with all the recursive direct calls to itself. Can

Re: Database (Recursion and Factorials)

2001-05-14 Thread Peter van Dijk
On Mon, May 14, 2001 at 09:32:05AM -0400, lkeeton wrote: [snip] how does it take place. For instance in this example I pass 5 it then gets to the line below and evaluates value = 5 * factorial(5-1)- right there that tells me to call the function again and pass it 4 then when I get to the