提交时间:2020-08-22 10:25:15

运行 ID: 6008

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