Question: Trace through (show all the steps as we did in class) for the following java code for the factorial function. Show all the steps (illustrate,
Trace through (show all the steps as we did in class) for the following java code for the factorial function. Show all the steps (illustrate, do not code) that lead to the final answer when myFactorial(6) is called:
int myFactorial( int integer) { if( integer == 1) return 1;
else { return(integer*(myFactorial(integer-1); }
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
