title: Can't get the for loops working
body: <p>The first for loops it gives me the correct answer which is 0.00 as the lowest.<br>
  However when I add the second for loop for to track number of months with 0.00 rainfall, the first for loops says "nan", while the second for loops gives correct answer which is 2.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main(){
      const int NUM = 12;
      string month[NUM] =  {"JAN","FEB","MAR","APR","MAY","JUNE","JULY","AUG","SEPT","OCT","NOV","DEC"};
      int counter = 0;
      float lowest;
      float rainfall [NUM] = {20.75, 34.60, 0.00, 4.12, 1.00, 72.99, 3.76, 10.00,     8.09, 64.05, 0.00, 30.02};
      for (int i = 0; i &lt; NUM; i++) {
          if ((rainfall[i] &lt; rainfall [i-1]) &amp;&amp; (rainfall[i] &lt; lowest))
             lowest = rainfall[i];
      }
      cout &lt;&lt; lowest &lt;&lt; endl;
      for (int i = 0; i &lt; NUM; i++)
      {
          if (rainfall[i] == 0.00)
          counter += 1;
      }
      cout &lt;&lt; counter;
      return 0;
  }
  </code></pre>