title: C: Summing values < 0 in multi-dimensional array
body: <pre><code>for(day=0; day&lt;NUMDAYS; day++) {
      for(period=0; period&lt;NUMPERIODS; period++) {
        if(mood[period][day]&lt;0)
        sum++;
      }
  }
  printf("Total number of days less than 0 is: \n", sum);
  </code></pre>
  
  <p>/* I am writing a program that is a multi-dimensional array (3x4) and I am inputting values between -5 thru 5.  The code is supposed to count the number of days(columns) that have and period(rows) with values less that 0.  Every time I attempt to execute the code, I get nothing */</p>