title: Write a C program that read 5 numbers and counts the number of positive numbers and print the average of all positive values
body: <p>i inputed the first number:14,the second number:63,the third number:78,the fourth number:45,the fifth number:21 and i got 44.00 instead of 44.20.Where did i go wrong?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main() {
  int i,numbers[5],total=0,count=0;
  float average ;
  printf("\nInput the first number:");
  scanf("%d", &amp;numbers[0]);
  printf("\nInput the second number:");
  scanf("%d", &amp;numbers[1]);
  printf("\nInput the third number:");
  scanf("%d", &amp;numbers[2]);
  printf("\nInput the fourth number:");
  scanf("%d", &amp;numbers[3]);
  printf("\nInput the fifth number:");
  scanf("%d", &amp;numbers[4]);
  for (i = 0; i &lt; 5; i++) {
      if (numbers[i] &gt; 0) {
          count++;
          total += numbers[i];
      }
  }
  average = total / count;
  printf("\n The number of positive numbers:%d\n", count);
  printf("\n The average of all positive value is %.2f\n", average);
  return 0;
   }
  </code></pre>