CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
thanhvan86

CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp

(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
FUO
35

Thông tin

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

Image metadata

Filename
CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
File size
186.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom