I have been working on some code that calculates your BMI and then puts you into a category based on that. every time i try and run this program it either tells me that I am in the underweight class or the average class and I have no idea why please help
this is the part of the code that sorts the BMI to the correct category
if(weight <= 18.4){
cout << "Your BMI is " << weight << " you are underweight." << endl;
getch();
return 0;
}
if(weight <= 24.9 || weight >= 18.5){
cout << "Your BMI is " << weight << " you are average." << endl;
getch();
return 0;
}
if(weight <= 29.9 || weight >= 25.0){
cout << "Your BMI is " << weight << " you are overweight." << endl;
getch();
return 0;
}
if(weight >= 30.0){
cout << "Your BMI is " << weight << "you are Obese." << endl;
getch();
return 0;
}
Thanks in advance