contestada

Given the following method:

public static void mystery(int x) {
int y = 1;
int z = 0;
while (2 * y<= x) {
y = y*2;
}
System.out.println(y + " " + z);
}

Write the output of each of the following calls.
mystery (1);
mystery (6);
mystery (19);
mystery (39);
mystery (74);