Q2_98_20250728162208.webp
royal_peace

Q2_98_20250728162208.webp

☑Kizspy.me
(Choose 1 answer)
☐ A
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. *
***
*****
0
sh the exam.
LAPTOP RUNNING
Q:

Thông tin

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

Share this media

Back
Bên trên Bottom