- 龙凤苑中学A班5.17
肥胖问题
- @ 2024-5-17 17:25:45
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
double a,b,c;
cin>>a>>b;
c=a/(b*b);
if(c<18.5){
cout<<"Underweight";
}
else if(c>=18.5&&c<24){
cout<<"Normal";
}
else if(c>=24){
cout<<c<<endl<<"Overweight";
}
return 0;
}
0 comments
No comments so far...