0
這是我的代碼的if語句,但我警告說,它不能回來,因爲我用void類型語句,請幫忙BMI如果使用返回
if (BMI < 18.5)
return " You are underweight";
if ((BMI >= 18.5) && (BMI < 24.5))
return " You are normal weight.";
else if (BMI > 25)
return " You are overweight.";
else (BMI>30)
return "You are Obese!";
感謝。輔助 –