60分求助!
查看原帖
60分求助!
745934
AlexDT楼主2022/9/11 09:16

这才60分,求助!

#include<bits/stdc++.h>
using namespace std;
int main()
{
	double m,h,i;
	cin>>m>>h;
	i=m/(h*h);
	if(i<18.5){
		cout<<"Underweight";
	}else{
		if(i>=18.5&&i<24){
			cout<<"Normal";
		}else{
			cout<<i<<"Overweight";
		}
	}
	return 0;
}
2022/9/11 09:16
加载中...