while loop mystery
Fill in the boxes at right with the output produced by each method call.
public static void mystery2(int x, int y) {
int z = 0;
while (x % y != 0) {
x = x / y;
z++;
System.out.print(x + ", ");
}
System.out.println(z);
}
|
|