60求条
查看原帖
60求条
1492895
ztk110929525j26楼主2025/1/24 09:52
#include<bits/stdc++.h>
using namespace std;
int main(){
	double a,b;
	cin>>a>>b;
	float BMI;
	BMI=a/(b*b);
	if(BMI<18.5)
	cout<<"Underweight";
	if((BMI>=18.5)&&(BMI<24))
	cout<<"Normal";
	if(BMI>24)
	cout<<BMI<<"Overweight";
	return 0;
}
2025/1/24 09:52
加载中...