why the value y is 2 hear?
why can't it is 1 becauese the vale of x is 1 in the 1st time
then it is 3 so the value of y is not incermented so the output should be
8 1
why it is 8 2please expalin me
Thanks in advance
class Foozit {
public static void main(
String[] args) {
Integer x = 0;
Integer y = 0;
for(Short z = 0; z < 5; z++)
if((++x > 2) || (++y > 2))
x++;
System.out.println(x + " " + y);
}
}