title: changing printf to cout
body: <p>I am still a bit unfamiliar with C++ and need some help with using <code>cout</code>.</p>
  
  <pre><code>int main()
  {
      char letterGrades[25] = { 'a', 'b', 'c', 'd', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', };
  
      for (int i = 0; i &lt; 25; i++)
      {
          printf("[%d] --&gt; %c", i, letterGrades[i]);
  
          if (i == 3)      // how can I print \n when i == 7 , 11 , 15 , 19....
          {
              printf("\n");
          }
      }
  }
  </code></pre>
  
  <p>This is what I am trying to do, and it works perfectly fine. However, I don't know how to write this code using cout. </p>
  
  <p>Also, I would print the result in a 4 in a row tabulate format.
  so result can look something like this </p>
  
  <pre><code>[0] --&gt; A [1] --&gt; A [2] --&gt; A [3] --&gt; A
  [4] --&gt; A [5] --&gt; A [6] --&gt; A [7] --&gt; A
  [8] --&gt; A [9] --&gt; A [10] --&gt; A [11] --&gt; A
  </code></pre>