Average grade = NaN

If the user enters a -1 as the very first grade:

The code following the body of the loop attempts to divide zero by zero, which is impossible.

The result is reported as NaN, which means "Not a Number."