title: Loop not outping desired result
body: <p>I am trying to make a loop where I enter 30 or less student's GPA and get: the average gpa, highest and lowest gpa, adjusted average, see if a specific gpa was entered and display the contents of the array. But when I run the code I have, I can only enter one gpa...</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  #define GPA_COUNT 30
  
  main(){
      int gpa [GPA_COUNT];
      int total = 0, i;
      double average;
  
      for(i = 0; i &lt; GPA_COUNT; i++){
          printf("Enter student %i's GPA: \n", i + 1);
              scanf("%i", &amp;gpa[i]);
      }
      for(i = 0; i &lt; GPA_COUNT; i++){
          total += gpa[i];
  
  
      if(gpa[i] &gt; 2.0){
          printf("You need to study harder! \n");
      }
      else if(gpa[i] &lt; 3.5){
          printf("Nice work! \n");
      }
  }
  
      average = (double)total / GPA_COUNT;
  
      printf("The average GPA is: %.2lf \n", average);
      system("pause");
  }
  </code></pre>
  
  <p>I would like to be able to enter the rest of the gpa's.</p>