title: Write a loop that reads ten numbers and then outputs them
body: <p>I simply cannot figure out how to correctly output the numbers. I know it has something to do with how I have the cout, but I can't figure out exactly what it is.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
  const int size = 10;
  int values[size];
  
  cout &lt;&lt; "Please enter up tp 10 positive numbers." &lt;&lt; endl;
  
  for (int i=0; i &lt; size; i++)
  {
      cin &gt;&gt; values[i];
  }
  
      cout &lt;&lt; endl;
      cout &lt;&lt; values[size];
  
  
  
  system("pause");
  return 0;
  
  }
  </code></pre>