Question: What does the following recursive function do ? You may assume that the input n is always greater than 1 0 . function f (

What does the following recursive function do? You may assume that the input n is always greater than 10.
function f(n)
if n >=2 then
return f(n-2)* n
return 2
Group of answer choices
1- It calculates the product of all odd or even integers between 1 and n
2- It calculates the sum of integers between 2 and n
3- It calculates 2 times the product of all odd or even integers between 1 and n
4- It calculates the factorial of n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!