📚 Practice Mode
Control Flow
Learn at your own pace with hints and detailed explanations
1 / 11
Multiple Choice
What will be the output of the program?
int x = l, y = 6;
while (y--)
{
x++;
}
System.out.println(x = + x + y = + y);
- x = 6 y = 0
- x = 7 y = 0
- x = 6 y = -1
- compilation fails