#include <iostream.h>
void main()
{
double average;
int GradestoAvg;
int sum = 0;
{
cout << "This program averages grades that the user provides. " << endl;
cout << "How many grades do you want to average?" << endl;
cin >> GradestoAvg;
cout << "Enter Grades:" << endl;
cin << sum;
}
while (GradestoAvg > 0)
average = sum / GradestoAvg;
cout << "The average of the grades is << average <<" endl;
Why am I getting a compiler error near the top? It tells me it is expecting a ; near the top where my double average and int GradestoAvg are located. Any thoughts?