Solved

The Following Code for the Method Factorial)applies to the Next

Question 5

Multiple Choice

The following code for the method factorial) applies to the next two questions: public static double factorial double n)
{
If n == 0)
{
Return 1;
}
Else
{
Return n * factorialn-1) ;
}
}
What is the value returned when the integer 3 is the argument to the factorial method?


A) 2
B) 4
C) 6
D) 8

Correct Answer:

verifed

Verified

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

Related Questions