Question: 2) Consider the following algorithm find the output for: a. func1 (4) b. func1(10) algorithm funcl (n) If (ny return -1 elseif (x equal y)
2) Consider the following algorithm find the output for: a. func1 (4) b. func1(10) algorithm funcl (n) If (ny return -1 elseif (x equal y) return 1 else return (x* func3 (x+1 , y) end if end func3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
