Solved

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

Question 13

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents