Question: (Recursion) Write a recursive method, mystery. The recursive method, mystery, should meet the following requirements: a. mystery(n1, n2) = n1 * mystery(n1, n2 - 1),
(Recursion) Write a recursive method, mystery. The recursive method, mystery, should meet the following requirements:
a. mystery(n1, n2) = n1 * mystery(n1, n2 - 1), when n>= 0 mystery(n1, 0) = 1
b. The main method will print the result of calling the recursive method, mystery, with parameter values: n1 = 2 and n2 = 3, mystery(2, 3).
c. Trace the recursive call and show the result of the call, mystery(2, 3).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
