提交时间:2020-08-20 13:45:22

运行 ID: 5865

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