CSD201_-_FA_2024_-_RE_3087.webp
Hữu Nghĩa

CSD201_-_FA_2024_-_RE_3087.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. *****
***
That's all!
C.**
That's all!
D. *
***
***
That's all!

21

Thông tin

Category
CSD201
Thêm bởi
Hữu Nghĩa
Ngày thêm
Lượt xem
4,870
Lượt bình luận
15
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_FA_2024_-_RE_3087.webp
File size
180.7 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom