MAD101_-_Test2_-_SU_2024_2075.webp
minhkhai99

MAD101_-_Test2_-_SU_2024_2075.webp

Question: 70
(Choose 1 answer)
(See picture)
A. 13
B. 15
C. 125
D. 243
E. None of the other choices is correct
Given the recursive algorithm
procedure P(a: real number, n: positive integer)
if n = 1 then
return 1
else
return a + P(a, n-1)
Find output if a = 3, n = 5.

Thông tin

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

Share this media

Back
Bên trên Bottom