6 solutions

  • 0
    @ 2024-10-29 17:56:03
    #include <bits/stdc++.h>
    #include <cmath>
    using  namespace std;
    int main() {
        double a,b,c;
        cin>>a>>b;
        c=a/(b*b);
        if(c<18.5){
            cout<<"Underweight";
        }
        else if(c>=18.5&&c<24){
            cout<<"Normal";
        }
        else if(c>=24){
            cout<<c<<endl<<"Overweight";
        }
    	
    	return 0;
    }
    

    Information

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