title: continue statement inside nested for loop
body: <p>I don't understand what exactly does the continue statement inside this for loop do. How is code any different if I remove it? Which lines does it skip if it's placed at the end of for loop?</p>
  
  <pre><code>int sum = 0, i, j, stop = 0;
  for( i = 1; i &lt;= 5 &amp;&amp; !stop; i++)
  {
      for( j = 1; j &lt;= 5 ; j++)
      {
          if (j%4 == 0)
          {
              stop = 1;
              continue;
          }
          sum += i+j;
      }
  }
  printf("%d\n", sum);
  </code></pre>
  
  <p>If you run this program the sum is going to be 15, and if you comment out countinue line then it's going to be 20.</p>