ok, i want a program to average, but it wont work. tell me whats wrong.
void avg (void)
cout<<"This program will get the average of numbers you enter."<<endl;
float g, x, y, num, avg, num1;
cout<<"How many numbers do you want to enter? ";
cout<<"Please enter your numbers: ";
cout<<"The average of your numbers is: "<<g<<flush<<endl;