What will be the values after this code is executed?

          int num = 3;
          int counter = 1;
          boolean condition = true;
          while(condition){
              num+= counter++;
              if(num>10){
                  condition=false;
                  num+= ++counter;
              }
          }
        

counter = 6 num = 19
  • counter = 5 num = 16
  • counter = 5 num = 17
  • counter = 6 num = 18

This question has no hints