c++ 80分求助!!!
查看原帖
c++ 80分求助!!!
350448
FALCONAD楼主2020/12/4 21:15
#include<bits/stdc++.h>
using namespace std;
int main()
{
	double m,h;
	cin>>m>>h;
	double bmi=m/(h*h);
	if(bmi<18.5) cout<<"Underweight";
	if(bmi>=18.5&&bmi<24) cout<<"Normal";
	else cout<<bmi<<endl<<"Overweight";
	return 0;
}
2020/12/4 21:15
加载中...