CSD201_-_SP_2024_-_RE_1744.webp
L

CSD201_-_SP_2024_-_RE_1744.webp

(Choose 1 answer)
Consider the following function:
void fun(int n)
{if (n <= 0)
System.out.println("That's all!");
else
{for(int i = 1; i <= n; i++)
System.out.print("*");System.out.println();
fun(n - 2);
}
}
What is the output when the statement fun(5); is run?
A. That's all!
***
B. *****
40/50-CAP
That's all!
C.
That's all!
D. * ***


Q: 42

Thông tin

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

Image metadata

Filename
CSD201_-_SP_2024_-_RE_1744.webp
File size
176.9 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom