CSD201_-_SU_2023_-_Block_5_-_RE_759.webp
Vân Anh1

CSD201_-_SU_2023_-_Block_5_-_RE_759.webp

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


Exit 39

Thông tin

Category
CSD201
Thêm bởi
Vân Anh1
Ngày thêm
Lượt xem
1,846
Lượt bình luận
21
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_SU_2023_-_Block_5_-_RE_759.webp
File size
49.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom