Q50.webp
pink_happiness

Q50.webp

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

Thông tin

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

Share this media

Back
Bên trên Bottom