Identify whether each assertion is always/never/sometimes true
at each point.
public static void mystery(int x, int y) {
int z = 0;
// Point A
while (x != y) {
// Point B
z++;
if (x > y) {
// Point C
x = x / 10;
} else {
// Point D
y = y / 10;
}
}
// Point E
System.out.println(x + " " + y + " " + z);
}
Solve this problem in Practice-It by clicking on the check-mark above.