MAD101_-_SU_2024_-_3_2279.webp
ngoclan1231

MAD101_-_SU_2024_-_3_2279.webp

Kizspy | Question: 28
(Choose 1 answer)
A. a + (a-1) + ... + 2 + 1 B. a^n C.na
D. None of the other choices is correct.
Given the recursive algorithm procedure fun(a: int; n: positive int)if n=1 then fun(a, n): = a else fun(a, n): = a + fun(a, n-1)What does this algorithm compute?

Thông tin

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

Share this media

Back
Bên trên Bottom