title: Why is my C program asking for one more input than it should? And the extra input doesn't even do anything
body: <p>The the code for that portion, if you want to compile it is below.</p>
  
  <p>Basically I have to take the following data and input it into the program:</p>
  
  <pre><code>4 5
  12 5 7 0 -3
  9 11 2 5 4
  0 -5 9 6 1
  2 12 93 -15 0
  5 3
  7 1 31
  0 0 5
  -5 -3 2
  9 41 11
  0 13 31
  </code></pre>
  
  <p>The first 4 5 &amp; 5 3 represent the dimensions of the first and second matrix, while the data after it is the data for the matrix.</p>
  
  <p>The problem is, when I copy and paste that in, it asks for one more input afterward, and when I input anything (say 84) it works flawlessly (output wise), and the 84 appears to do nothing. Why's it asking for this extra one?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(int argc, char *argv[]) {
      int rows1 = 1, columns1 = 1, rows2 = 1, columns2 = 1;    // variables for number of rows and columns in each matrix 
          int i, j, k;                                             // loop variables 
  
          // These will affect the loop's length
          scanf("%d %d", &amp;rows1, &amp;columns1);
          int matrix1[rows1][columns1];
          for (i = 0; i &lt; rows1; i++) {
              for (j = 0; j &lt; columns1; j++) {
                  scanf("%d ", &amp;matrix1[i][j]);
              }
          }
  
  
          scanf("%d %d", &amp;rows2, &amp;columns2);
          int matrix2[rows2][columns2];
          for (i = 0; i &lt; rows2; i++) {
              for (j = 0; j &lt; columns2; j++) {
                  scanf("%d ", &amp;matrix2[i][j]);
              }
          }
  }
  </code></pre>