title: Unable to print output in a loop c++
body: <p>I'm still in learning phase in C++ and I encountered this problem... please help me out::
  i want to print these values..</p>
  <pre><code>int main() {
      int t;
      cin&gt;&gt;t;
      while(t--){
          int count_x=0, count_o=0, count_=0;
          char a[3][3];
          for (int i = 0; i &lt; 3; i++) {
              for (int j = 0; j &lt; 3; j++) {
                  cin&gt;&gt;a[i][j];
                  if(a[i][j]=='X') count_x++;
                  if(a[i][j]=='O') count_o++;
                  if(a[i][j]=='_') count_++;
                }
          }
          cout&lt;&lt;count_x&lt;&lt;&quot; &quot;&lt;&lt;count_o&lt;&lt;endl;
       }`
        return 0;``
    }
  </code></pre>