Q48.webp
pink_happiness

Q48.webp

Question: 48
(Choose 1 answer)
What will be the output of the following code?
def f(n):
if(n<=3):
return 1
else:
return f(n-3)+f(n-1)
print(f(5))
A. 5
B. 4
C. 3
D. 2

Thông tin

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

Share this media

Back
Bên trên Bottom