提交时间:2020-08-20 13:41:21

运行 ID: 5859

#include <iostream> #include <cstdio> 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; }