How can I change this loop to not use continue?
<p>I used the continue statement to make this simple program and got the desired output.</p>

<pre><code>for(m=1;m&lt;=3;m++)
{
   for(n=1;n&lt;=2;n++)
   {
      if(m==n)
         continue;
      cout&lt;&lt;m&lt;&lt;" "&lt;&lt;n&lt;&lt;endl;
   }
}
</code></pre>

<p>output:</p>

<pre><code>1  2
2  1
3  1
3  2
</code></pre>

<p>Now I want it without using the coninue statement.  Is there any way to make it?</p>
