MAD101_-_SP_2025_-_Block_5_-_1_3846.webp
S

MAD101_-_SP_2025_-_Block_5_-_1_3846.webp

☑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)

Thông tin

Category
MAD101
Thêm bởi
singing_bird
Ngày thêm
Lượt xem
4,246
Lượt bình luận
11
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom