☑Kizspy.me
(Choose 1 answer)
(See picture)
☐ A
A. 5047
☐ C
0
B. -4046
C. -7041
D. -5056
FUO.sh
sh the exam.
Find the output of the recursive algorithm if input x = −2 and
n = 2023.
procedure product(n: positive integer, x: integer)
if n = 1 then return x
else return x + product(n−1,x)