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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!