title: Populate an array
body: <p>I'm trying to populate an array with integers, but I'm not quite sure how to implement it.
  I'm writing a program that ask for the amount of pancakes each person has and im wanting to store each amount into an array.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main ()
  {
     //An array of people
  
      for(int i = 0; i&lt;10; i ++)
      {
          int amount;
          cout&lt;&lt;"How many pancakes did person eat? \n";
          cin &gt;&gt; amount ;
  
          people[i] = amount;
  
      }
  }
  </code></pre>