title: how to print range of integer values from a vector
body: <p>If i create a vector:</p>
  
  <p><code>vector&lt;int&gt; numbers;</code></p>
  
  <p>and push some values in:</p>
  
  <pre><code>for (int i=1; i&lt;=39; ++i) numbers.push_back(i);
  </code></pre>
  
  <p>how can i print out only numbers 1 through 10 for example?</p>
  
  <p>Also after that, print out 15-30, so <code>numbers.begin()</code> isn't probably applicable there.</p>