title: break in do while loop
body: <p>What happens when breaking in nested loops?</p>
  
  <p>suppose the following code:</p>
  
  <pre><code>for(int x = 0; x &lt; 10; x++)
  {
      do {
          if(x == 4)
              break;
          x++;
      } while(x != 1);
  }
  </code></pre>
  
  <p>Which loop will exit on encountering the break statement, the for loop or the do while loop ?</p>