40分求助
查看原帖
40分求助
399881
封禁用户楼主2020/10/8 11:12
#include<bits/stdc++.h>
using namespace std;
double m,h,b;
int main()
{
    cin>>h>>m;
    b=h/m/m;
    if(b<18.5)
    {
        cout<<"Underweight";
    }
    if(b>=18.5&&b<24)
    {
        cout<<"Normal";
    }
    else
    {
        printf("%-6.g\nOverweight",b);
    }
    return 0;
}
2020/10/8 11:12
加载中...