A

Admin • 832.70K Points
Coach

Q. Which of the following recursive formula can be used to find the factorial of a number?

  • (A) fact(n) = n * fact(n)
  • (B) fact(n) = n * fact(n+1)
  • (C) fact(n) = n * fact(n-1)
  • (D) fact(n) = n * fact(1)

Explanation by: Admin

fact(n) = n * fact(n – 1) can be used to find the factorial of a number.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.