use of continue statement
Posted: Sat Jan 14, 2017 2:51 am
int x = 5;
while (x >= 0){
int y= 3;
while(y > 0) {
if (x<2) continue;
x--; y--;
System.out.println(x * y + " ");
}
}
How to guess the output of the following code?????
please help it compiles produce a output and goes infinitely....
But I can't understand this...
while (x >= 0){
int y= 3;
while(y > 0) {
if (x<2) continue;
x--; y--;
System.out.println(x * y + " ");
}
}
How to guess the output of the following code?????
please help it compiles produce a output and goes infinitely....
But I can't understand this...