title: Writing a 2-dimensional array table in C. How would I go about doing this. About neatness (such as dividing lines) as well
body: <p>I need to write a program that </p>
  
  <ol>
  <li><p>Defines a two-dimensional array named settings with appropriate type, dimensions, and sizes large enough to hold the following table:</p>
  
  <pre><code>0   1   2   3   4
  10  11  12  13  14
  20  21  22  23  24
  </code></pre></li>
  <li><p>Initialize the array with the values in the table</p></li>
  <li>Print the array to standard out in neat rows and columns.</li>
  </ol>
  
  <p>I have been taught some Java in this area, having difficulty actually outputting the numbers. I believe the everything in the array is correct and I am trying to output using if statements. Any way will work, I need to learn how to output tables in word. Also in the example he has each number "boxed off" neatly. Is this possible in word or is only the example I gave above possible? </p>
  
  <p>Here is my code that I have worked on thus far.</p>
  
  <pre><code>main() {
  
  #define column 5
  #define row 3
  int i = 0;
  int j = 0;
  
  int table[row][column] =
  {
      {0, 1, 2, 3, 4},
      {10, 11, 12, 13, 14},
      {20, 21, 22, 23, 24}
  };
  if(i&lt;3) {
      if(j&lt;5) {    
  
    return table[i][j];
      j++;
  }
  i++;
  }
  
  return 0;
  }
  </code></pre>