CSD201_-_FA_2023_-_RE_1133.webp
S

CSD201_-_FA_2023_-_RE_1133.webp

Answer (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!
That's all!
C. ****
That's all!
D. *
***
That's all!

Thông tin

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

Image metadata

Filename
CSD201_-_FA_2023_-_RE_1133.webp
File size
63.2 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom