Recursion termination: Difference between revisions

Content deleted Content added
Remove the extra else at the start of if condition in the example code.
Line 26:
</ref>
<pre>
unsigned int factorial(unsigned int number)
{
if (number == 0)