Question: Fill in the code to complete the following function for computing factorial public static long factorial(intn) if (n == 0) // Base case else

Fill in the code to complete the following function for computing factorial public static long factorial(intn) \ if (n == 0) // Base case else return n* factorial(n - 1); f/Recursive call return O; return n - 1 return 1; long result 1 return n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
