这串代码怎么过不去?
查看原帖
这串代码怎么过不去?
1425809
Undertakers楼主2024/10/2 20:24
#include<iostream>
using namespace std;
int main()
{
    double m,h,BMI;
    cin>>m>>h;
    BMI=m/h/h;
    if(BMI<18.5) cout<<"Underweight"<<endl;
    if(BMI>=24) cout<<BMI<<endl<<"Overweight"<<endl;
    else  cout<<"Normal"<<endl;
    return 0;
}

2024/10/2 20:24
加载中...