Two dimensional array (multiplication/division)
<p>I currently have this class created called Array Math which is loading into the 10x10 array the multiplication by location as shown in the image displayed under the code, however what I want to do is divide each location by 2 after the multiplication. So in other words (row * column) / 2 at the current moment i'm just loading into the array these numbers. I'm not sure how to approach this logically since i'm using two for loops to produce the multiplication between rows and columns.</p>

<pre><code>class ArrayMath
{
        private static final int tableSize = 10;
        public static void main(String[] args)
        {
                int table[][] = new int [tableSize][tableSize];
                for (int row = 1; row &lt;= 10; row++)
                {
                        for (int col = 1; col &lt;= 10; col++)
                        {
                                System.out.printf(row * col +"\t");
                        }
                        System.out.println();
                }
        }
}
</code></pre>

<p><a href="http://i.stack.imgur.com/iQwM1.png" rel="nofollow">Output of array</a></p>