title: Dimensional Variables
body: <p>I'm writing a program for school in FORTRAN. We have to write a program where the user enters a number of grades. With that number of grades, I have to make the program prompt the user that many times to enter the grades. I think I would use a dimensional variable, but I don't know how.</p>
  
  <p>So far I have this, with obvious compiling errors:</p>
  
  <pre><code>INTEGER :: NumGrades
  REAL :: GradeAverage
  INTEGER :: N
  
  WRITE (*,*) 'Enter Number of grades: '
  READ (*,*) NumGrades
  N = NumGrades
  
  REAL, Dimension(N) :: Grade
  
  WRITE (*,*) 'Enter the individual grades: '
  READ (*,*) Grade
  </code></pre>
  
  <p>Any help would be greatly appreciated! </p>