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