CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp
C

CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp

Multiple Choices
၁ C
(Choose 1 answer)
Consider the following function:
void fun(int n){
if (n == 0)
System.out.println("Hello");
else
{for(int i = 1; i <= n; i++)("$");
System.out.print System.out.println();
fun(n - 1);
}
}
What is the output when the statement fun(3); is run?
A. Hello
$$$
$$
$
B. $
$$
$$$
Hello
C. $$$
$$
$
Hello
D. Hello
$
SS

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2024_-_Block_5_-_FE_2653.webp
File size
82.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom