Finally, it's very weird that your factorial function takes two inputs. That's inconsistent with the mathematical function.Yes, but I note that his function looks similar to what a helper function would look like in a language with tail recursion optimization. It should still return a value instead of printing it though.
In reply to Re^2: factorial through recursion
by lidden
in thread factorial through recursion
by hnd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |