title: finding the highest and lowest number
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
  
  const int SIZE = 10;
  int values[SIZE];   
  int count;          
  int largest;        
  int smallest;       
  
  cout &lt;&lt; "Enter 10 integer values and I'll tell you the largest and the smallest number." &lt;&lt; endl;
  
  for (count = 0; count &lt; SIZE; count++)
  {
      cout &lt;&lt; "\nEnter an integer value: ";
      cin  &gt;&gt; values[count];
  }
  
  largest = smallest = values[0];
  for (count = 1; count &lt; SIZE; count++)
  {
      if (values[count] &gt; largest)
          largest = values[count];
      if (values[count] &lt; smallest)
          smallest = values[count];
  }
  
  
  cout &lt;&lt; "\nThe largest value entered is " &lt;&lt; largest &lt;&lt; endl;
  cout &lt;&lt; "The smallest value entered is " &lt;&lt; smallest &lt;&lt; endl &lt;&lt; endl;
  
  
   system("pause");
    return 0;   
  
  }
  </code></pre>
  
  <p>Hello guys this is my program here, it's a program to find out the highest and the lowest number I want to ask a few questions.</p>
  
  <p>For the first for loop, they assigned the count to 0 initially, but for the 2nd loop it was assigned to 1. </p>
  
  <p>Also the part where:
  largest = smallest = values[0];</p>
  
  <p>why so? and what is values[0]?</p>
  
  <p>please help </p>