3 solutions

  • 1
    @ 2026-1-17 9:47:33

    #include<bits/stdc++.h> using namespace std; int main() { double m,h; cin>>m>>h; double a=m/(h*h); if(a<18.5) { cout<<"Underweight"; } if(a>18.5&&a<24) { cout<<"Normal"; } if(a>24) { cout<<a<<endl<<"Overweight"; }

    return 0;
    

    }

    Information

    ID
    1490
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    113
    Accepted
    40
    Uploaded By