2. |
Which lines of output are displayed by the following program?
class Question2 {
public static void main(String[] args) {
int i,j;
outer: for(i=0, j=0; i+j < 20; ++i, j += i) {
inner: while(i < j) {
if(j == i + 1) continue outer;
else if(j == i + 2) break inner;
else ++i;
}
System.out.println(i*j);
}
}
}
Please select all the correct answers.
|