You are employed as a developer at skillgun.com. You make use of C# and ASP.NET for development purposes. You have been instructed to create a new application that should include a recursive method that computes the factorial of a number. You have written the following code for the method
public static int Factorial(int n)
if (n == 0)
You have to insert suitable code in the else block to make sure that the proper outcome is reached. What line of code should be inserted?
return n * Factorial(n - 1);
return n * Factorial(n - 0);
Back To Top