While Loop Simulation for Each Call of the Method Below
Question 1
Question 1
Essay
While Loop Simulation For each call of the method below, write the output that is printed: public static void mystery(int i, int j) { while (i != 0 && j != 0) { i = i / j; j = (j - 1) / 2; System.out.print(i + " " + j + " "); } System.out.println(i); } Method Call mystery (5,0) mystery (3,2) mystery (16,5) mystery (80,9) mystery (1600,40) Output