How i write double for loop formula in term of mathmatics - MathOverflow [closed]most recent 30 from http://mathoverflow.net2013-05-22T22:08:06Zhttp://mathoverflow.net/feeds/question/90264http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/90264/how-i-write-double-for-loop-formula-in-term-of-mathmaticsHow i write double for loop formula in term of mathmaticskitti2012-03-05T10:42:35Z2012-03-05T10:42:35Z
<p>for example </p>
<p>int a[100];</p>
<p>int w = 3;</p>
<p>for ( int i = 0; i < 5 ; i++)
{</p>
<pre><code>for ( int j = 0; j < 10 ; j++)
{
a[j+(i*w)] = i + j ;
}
</code></pre>
<p>}</p>
<p>How i write for that</p>
<p>Thank you</p>