0分求助
查看原帖
0分求助
555075
you_are_a_idiot楼主2023/1/21 19:09
#include<iostream>
using namespace std;

int main()
{
    int h, m;
    cin >> h >> m;
    int BMI = h * h / m;
    if(BMI < 18.5) cout << "underweight" << endl;
    else if(BMI >= 18.5 && BMI < 24) cout << "Normal" << endl;
    else if(BMI > 24) cout << BMI << endl << "Overweight";
    return 0;
}
2023/1/21 19:09
加载中...