title: C++ printing spaces or tabs given a user input integer
body: <p>I need to turn user input (a number) into an output of TAB spaces.
  Example I ask user:</p>
  
  <pre><code>cout &lt;&lt; "Enter amount of spaces you would like (integer)" &lt;&lt; endl;
  cin &gt;&gt; n;
  </code></pre>
  
  <p>the (n) i need to turn it into an output like:</p>
  
  <pre><code>cout &lt;&lt; n , endl; 
  </code></pre>
  
  <p>and what prints on the screen would be the spaces
  ex 
  input is 5 
  out put |<strong>_</strong>| &lt;~~~there are five spaces there.</p>
  
  <p>Sorry If I can't be clear, probably this is the reason I haven't been able to find an answer looking through other people's questions.</p>
  
  <p>any help will be greatly appreciated.</p>