2 solutions

  • -1
    @ 2025-10-19 16:02:20
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double n,m;
    	cin>>n>>m;
    	double a=n/(m*m);
    	if(a<18.5){
    		cout<<"Underweight";
    	}
    	if(a>=18.5&&a<24){
    		cout<<"Normal";
    	}
    	if(a>=24){
    		cout<<a<<endl;
    		cout<<"Overweight";
    	}
    	return 0;
    }
    
    
    

    Information

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