CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
Kokushibo91

CSD201_-_SU_2023_-_Block_5_-_FE_736.webp

Answer (Choose 1 answer)
A. $
$$
$$$
Hello
B. Hello
$$$
$$
$
void fun(int n)
Consider the following function:
{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?
C. Hello
$
$$
$$$
D. $$$
$$
$
Hello
antonis ni

Ex 38
  • Like
Reactions: Hoàng Hùng

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom