Flow Control
© examsiri.com
Question : 12 of 14
Marks:
+1,
-0
Given:
What is the result?
class Circus {
  public static void main(String[] args) {
   int x = 9;
   int y = 6;
   for(int z = 0; z < 6; z++, y--) {
     if(x > 2) x--;
     label:
     if(x > 5) {
      System.out.print(x + " ");
      --x;
      continue label;
     }
    x--;
   }
  }
}What is the result?
Go to Question: