title: How to use goto to break a nested loop
body: <p>How can I use a "goto" statement to break out of a loop</p>
  
  <pre><code>for(i = 0; (i &lt; 9); i++)
      {
          for(j = 0; j &lt; 9; j++)
          {
              //cout &lt;&lt; " " &lt;&lt; Matrix[i][j];
              //cout &lt;&lt; "i: " &lt;&lt; i &lt;&lt; endl;
              if(Matrix[i][j] == 0)
              {
                  //temp = 10;
                  [goto] ;
                  //break;
              }
          }
      }
  </code></pre>
  
  <p>I wanted to keep the values at which i and j were when I left the nested for loop. How can I use a goto statement for that?</p>