提交时间:2020-08-22 13:52:07

运行 ID: 6067

#include <iostream> using namespace std; int main() { double h, m, bmi; cin >> m >> h; bmi = m/(h*h); if (bmi < 18.5) { cout << "Underweight" ; } else if (bmi >= 18.5 && bmi < 24) { cout << "Normal"; } else (bmi <=24); { cout << bmi << endl; cout << "Overweight"; } return 0; }