title: Why is it taking 10 inputs?
body: <p>Who does the following program take 10 inputs instead of 9?</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int arr[3][3];
  
      for(int i=0;i&lt;3;i++)
          for(int j=0;j&lt;3;j++)
              scanf(&quot;%d &quot;, &amp;arr[j][i]);
  
  
      printf(&quot;\n&quot;);
  
      for(int i=0;i&lt;3;i++)
          for(int j=0;j&lt;3;j++)
              printf(&quot;\n%d &quot;, arr[j][i]);
      
  
       return 0;
  }
  
  </code></pre>