void displayHealthStatus (double bmi)
{
cout << "Your BMI value is " << bmi <<
"\n\nBMI VALUES \n underweight: less than 18.5"<<
"\n Normal: between 18.5 and 24.9"<<
"\n Overweight: between 25 and 29.9"<<
"\n Obese: 30 or greater" << endl;
}
int main()
{
double weight, height, bmi;
cout << "Enter your weight in pounds: ";
cin >> weight;
cout << "Enter your height in inches: ";
cin >> height;
calculateBMI(height, weight);
//BMI always comes out to zero and I don't know why
displayHealthStatus(bmi);
Always initialise your variables to something, preferably wait until you have a sensible value to assign to it, otherwise at the same time as declaration: