0

im supposed to write a code that you prompt to enter 10 different grades then drop the minimum value, while computing the average of the remaining 9. I'm getting infinity as the answer when I run the program so I know my min is messed up, somewhere but i cant find it can anyone help?

```
using System;
namespace gradeblaster
{
class Program
{
public static void Main(string[] args)
{
getValues();
} // end Main
static void getValues()
{
double total;
double gradeCounter;
double grade;
double average;
double min = Double.MinValue;
total = 0;
gradeCounter = 1;
{
while (gradeCounter <= 10) // while loop
{
Console.Write("Enter grade: ");
grade = Convert.ToDouble(Console.ReadLine());
total = total + grade - min;
gradeCounter = gradeCounter + 1;
average = (total - min) / 9;
Console.WriteLine("\nAfter the last score is dropped, the class average is {0}", average);
}
}
}
} // end class
} // end namespace
```