Just trying to write something to sum and average three numbers but it says "expected unqualified-id before '<<' token (line 13)" and 'a' was not declared in this scope (same for b and c) (lines 14 and 16), help please!
#include <iostream>
usingnamespace std;
int add (double x, double y, double z)
{
return x + y + z;
}
int main ()
{
cout << "Enter three numbers:" << endl;
double << a, b, c;
cin >> a >> b >> b;
cout << "The sum of your numbers is: " << add (a, b, c) << endl;
cout << "The mean of your numbers is: " << add(a, b, c) / 3 << endl;
return 0;
}