title: Two for loops in one line c++
body: <p>My question is regarding two for loops in one line of code. For example:</p>
  
  <pre><code>vector &lt; vector&lt;int&gt; &gt; myArray;
  
  for (int i; i &gt; n; i++) for (int j; j &gt; m; j++)
  {
  //Statements
  myArray[i][j];
  }
  </code></pre>
  
  <p>Obviously it really is used for 2-dimensional arrays or vectors, but what real practical examples would they be used for? Since it would be hard to display the rows and columns in separate lines. Also, both for loop conditions would change at the same time since they are on the same line, which would be more difficult to control the whole process.</p>
  
  <p>Shortly, what is the practical purpose of this?</p>