title: How to write a program that fills from the keyboard a two-dimensional table of integers A [3][2]
body: <p>I can only write a program that fills from the keyboard a one-dimensional table
  need to learn how to make a two-dimensional table.  Here's the code that I'm trying to make work:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      int A[3][2];
      int i,j;
      for(i=0;i&lt;3;i++)
      {
          printf("\n");
          for(j=0;j&lt;2;j++)
          {
              scanf("%d",&amp;A[i][j]);
          }
      }
      for(i=0;i&lt;3;i++)
      {
          for(j=0;j&lt;2;j++)
          {
              printf("%d\n",A[i][j]);
          }
      }
  }
  </code></pre>
  
  <p>The output will be like (x=the numbers I enter)</p>
  
  <pre><code>    x
      x
      x
      x
      x
      x
  </code></pre>
  
  <p>I want that to be like:</p>
  
  <pre><code>      x  x  x
        x  x  x
  </code></pre>
  
  <p>How do I fix it?</p>