(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