title: How does the break clause respond in this examples?
body: <p>How does the <code>break</code> clause work?</p>
  
  <p>I understand if I have a <code>break</code> inside a loop, the loop will terminate it's execution. For example:</p>
  
  <pre><code>for (int i=0; i&lt;10; i++) {
      break;
  }
  </code></pre>
  
  <p>But would it work if the <code>break</code> clause it's inside of a loop but also inside of a <code>if</code>or an <code>else</code>? For example:</p>
  
  <pre><code>for (int i=0; i&lt;10; i++) {
      if (i==7) {   
         //code
         break;
         //code
      }
  }
  </code></pre>
  
  <p>Will the <code>break</code> clause make the <code>for</code> loop end or just will skip the code next to it on the <code>if</code> clause and continue iterating?</p>
  
  <p>What if the <code>break</code> clause it's inside a loop inside of a loop? Would it end the execution of both loops or just the nearest?</p>
  
  <p>Thanks in advance.</p>