6 solutions

  • 0
    @ 2025-6-2 14:41:00

    #include using namespace std; int main(){ double m,h; cin>>m>>h; double BMI=1.0m/(hh); if(BMI<18.5){ cout<<"Underweight"<<endl; }else if(BMI>=18.5&&BMI<24){ cout<<"Normal"<<endl; }else if(BMI>=24){ cout<<BMI<<endl; cout<<"Overweight"<<endl; } return 0; }

    Information

    ID
    392
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    # Submissions
    354
    Accepted
    113
    Uploaded By