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