title: How to use ring of for to put letters together to form a word?
body: <p>As we can store and add numbers.</p>
  <p>How to get the letters of a color in this code grain by grain and then display it in full, using <code>for</code></p>
  <p>For example:</p>
  <pre><code>enter n:4
  number1:b
  number2:l
  number3:u
  number4:e
  color: blue
  </code></pre>
  <p>My problem is I don't know what to do to save all the letters, not just the last letter.</p>
  <pre><code>int n;
  char a;
  char sum=sum;
  cout&lt;&lt;&quot;enter n:&quot;;
  cin&gt;&gt;n;
  for(int i=1;i&lt;=n;i++)
  {
      cout&lt;&lt;&quot;number&quot;&lt;&lt;i&lt;&lt;&quot;:&quot;;
      cin&gt;&gt;a;
      sum=a;
  }
  cout&lt;&lt;&quot;color: &quot;&lt;&lt;sum;
  </code></pre>