Hi, quite a newbie here and having problems with a function. Getting an error that says expected ';' before ')' token
double Jacket_size(double weight,double Age)
{
double weight1, Age1, height1;
double Jacket_size_total;
Jacket_size_total = ((height1 * weight1)/288) + (Age1-40) * 1.8);
return Jacket_size_total;
}
really not sure if I even have it set up correctly, any help is greatly appreciated
You have a mismatch of parenthesis. Try:
Jacket_size_total = ((height1 * weight1)/288) + (Age1-40) * 1.8;
wow! stared at that for an hour, and was lost. Thanks so much!!