60错哪了?help me
查看原帖
60错哪了?help me
796459
Jiangxh100315楼主2024/5/31 15:16
#include<bits/stdc++.h>
using namespace std;
long double m,h,a,b;
int main(){
	cin>>m>>h;
	a=m/(h*h);
	if(a<18.5){
		cout<<"Underweight";
	}
	else if(a>=18.5&&a<24){
		cout<<"Normal";
	}
	else if(a>=24){
	    cout<<fixed<<setprecision(6)<<a;
	    cout<<a;
	    cout<<endl;
	    cout<<"Overweight" ;
	}
	return 0;
}
2024/5/31 15:16
加载中...