title: how to print out x amount of results per line
body: <p>For this code I created that outputs the ASCII characters corresponding to <code>int</code>s, I need to print out 16 ASCIIs per line. How would I go about doing so? I'm not sure how to approach these? Do I create another <code>for</code> loop inside?</p>
  
  <pre><code>int main()
  {
      int x = 0;
  
      for (int i = 0; i &lt;= 127; i++)
      {
          int x = i;
          char y = (char) x;
          cout &lt;&lt; y;
      }
  
      return 0;
  }
  </code></pre>
  
  <p>Or should I put the <code>cout</code> outside with 16 separate lines? I am trying to print 17 ASCIIs starting from 1 in a row.</p>