title: Creating a 2D array board
body: <p>I am trying to create a 2d matrix board which side is determined by the user input.  I created the two  D array but it is not printing the right numbers. For example if the user enters 3, it is suppose to create a 3 * 3 board with the number 8,  7, 6, 5, 4, 3, 2, 1, 0.</p>
  
  <p>However  it keeps printing the same numbers in each row eg 876, 876, 876</p>
  
  <p>I know it is doing what I have written but I cant figure out how to correct it...I am thinking that I need a counter that resets to zero and perhaps the [i][j] = counter's value.</p>
  
  <p>Anyway here is the code that is giving the trouble.  </p>
  
  <pre><code>for (i =0; i&lt; row; i++) 
  {  
      for (j =0; j &lt; col; j++)
      {
          game [i][j] = ((row * row)-1) - j;   
          printf( "%i", game[i][j] ); 
      }
  </code></pre>
  
  <p>How can I populate the board so it prints from (row  * col) - 1 to zero. Thanks a million.</p>