Question: 3. Recursive method; what is printed if we call F1 (3, 4); public static void fi (int x, int y) { if (x == y)

3. Recursive method; what is printed if we call F1 (3, 4); public static void fi (int x, int y) { if (x == y) { System.out.print("**"); } else if (x >= y) { System.out.println("*" + y + "*"); } else { System.out.print(y + " "); fi(x+1, y - 1); System.out.print(""+x); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
