80,求助,代码如下
查看原帖
80,求助,代码如下
1388115
_Monody_楼主2024/7/16 11:11
#include<bits/stdc++.h>
using namespace std;
int main() {
	double m, h;
	cin>>m>>h;
	if((m/pow(h,2))<18.5){
		cout<<"Underweight";
	}
	if((m/pow(h,2))>24){
		cout<<m/pow(h,2)<<"\n"<<"Overweight";
	}else{
		cout<<"Normal";
	}
    return 0;
}
2024/7/16 11:11
加载中...