提交时间:2020-08-20 13:42:44

运行 ID: 5860

#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 (x<=18.5 && x<24) { cout << "Normal"; } else { cout << x << endl; cout << "Overweight"; } return 0; }