1 / 11 Settings
<<<>>>

Suppose that we want to compute the value of factorial(5) using the following recursive factorial implementation.

  • int factorial(int n) {
  • if (n <= 1)
  • return 1;
  • return n * factorial(n-1);
  • }
Proficient Saving... Error Saving
Server Error
Resubmit