Solved

Demonstrate How Factorial(4) Is Computed Given the Following Recursive Method

Question 28

Essay

Demonstrate how factorial(4) is computed given the following recursive method for factorial:
public int factorial(int n)
{
if (n > 1) return factorial(n - 1) * n;
else return 1;
}

Correct Answer:

verifed

Verified

factorial(4) = factorial(3) * ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions