CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
Kokushibo91

CSD201_-_SU_2023_-_Block_5_-_FE_736.webp

(Choose 1 answer)
int fun(int n)
Consider the following function:
{if(n<=0) return(1);
return(2*fun(n-2));
}
What is the output when the statement:System.out.println(fun(5));is run?
A. 8
B. 7
C. 9
D. 10
antonis ni

Evit
1
  • Like
Reactions: Hoàng Hùng

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
File size
44.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom