提交时间:2020-08-22 10:20:54
运行 ID: 6004
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { double m, h, c; cin >> m >> h; c = m / (h*h); if ( c < 18.5) cout <<"Underweight"; else if ( c >= 18.5 && c < 24) cout <<"Normal"; else if ( c > 24) cout << c << endl << "Overweight"; return 0; }