Re: Help for a newbie please
The one you have at the moment is recursive (it calls itself, decreasing the parameter each time until the termination condition is met).
The book wants you to alter the Fac fuction so that it doesn't call itself anymore but does all the calculations in one go.
Add new loop to Fac() that calculates the factorial for the number that is passed to Fac().
I'm surprised taht the book has taught recursion BEFORE iteration, thats a bit strange.
Re: Help for a newbie please
Thanks for your help. Cheers.