60分求助,1、2过不了
查看原帖
60分求助,1、2过不了
636849
HiCode2009楼主2022/4/9 11:22
#include<bits/stdc++.h>
using namespace std;
int main()
{
	double m,h,b;
    cin>>m>>h;
	b=m/(h*h);
	if(b<18.5) 
        cout<<"Underweight";
	else{
        if(b>=24) 
            cout<<b<<"Overweight";
        else
            cout<<"Normal";
    }
	return 0;
}
2022/4/9 11:22
加载中...