Every time I try to compile my code I keep getting an error stating that there are too many arguments in my function and I don't understand what that means or what to do.
#include <iostream>
usingnamespace std;
double average();
int findLowest();
void findLetter();
int main()
{
int x, y, z;
cout<<"please enter three grades"<<endl;
cin>>x>>y>>z;
average(x, y, z);
return 0;
}
double average(int x, int y, int z)
{
double a = (x+y+z) / 3;
return a;
}
#include <iostream>
usingnamespace std;
double average(int,int,int); // fixed: error was here
int findLowest();
void findLetter();
int main()
{
int x, y, z;
cout<<"please enter three grades"<<endl;
cin>>x>>y>>z;
average(x, y, z);
return 0;
}
double average(int x, int y, int z)
{
double a = (x+y+z) / 3;
return a;
}