public class
Test {
public static void main(
String [] args)
{
int x= 0;
int y= 10;
for (int z = 0; z < 5; z++)
{
if (( y-- > 7 ) || (++x > 2))
{
y--;
}
}
System.out.println(y + " " + x);
}
}
Answer is 2 3
Can anyone explain output of this questions.It is from K&B Master Exam-1