只有60分,求助
查看原帖
只有60分,求助
1071074
601610w楼主2024/1/13 11:48
#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,g;
	long double h,l;
	cin>>n>>h;
	l=n/h;
	l=l/h;
	if(l<18.5){
		cout<<"Underweight";
	}
	if(18.5<=l){
		if(l<24){
			cout<<"Normal";
		}
		if(l>=24){
			cout<<l<<" "<<"Overweight";
		}
	}
	
	
}
2024/1/13 11:48
加载中...