```
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<math.h>
main()
{
system("cls");
int h,w,m;
cout<<"Press1,if you are male"<<endl;
cout<<"press2,if you are female"<<endl;
cin>>m;
if(m==1)
{
cout<<"you are male"<<endl;
}
if(m==2)
{
cout<<"you are female"<<endl;
}
cout<<"Enter your height=";
cin>>h;
cout<<"Enter your weight=";
cin>>w;
if(m==1)
{
if(h<60)
{
cout<<"you are unfit";
}
if(h>=60&&h<65)
{
if(w<45)
cout<<"you are unfit";
if(w>=45&&w<55)
cout<<"you are fit";
if(w>=55&&w<60)
cout<<"you are acceptable";
if(w>=60)
cout<<"you are unfit";
}
if(h>=60&&h<70)
{
if(w<55)
cout<<"you are unfit";
if(w>=55&&w<65)
cout<<"you are fit";
if(w>=65&&w<75)
cout<<"you are acceptable";
if(w>=75)
cout<<"you are unfit";
}
if(h>=70)
cout<<"you are unfit";
}
if(m==2)
{
if(h<54)
{
cout<<"you are unfit";
}
if(h>=54&&h<60)
{
if(w<40)
cout<<"you are unfit";
if(w>=40&&w<50)
cout<<"you are fit";
if(w>=50&&w<55)
cout<<"you are acceptable";
if(w>=55)
cout<<"you are unfit";
}
if(h>=60&&h<64)
{
if(w<45)
cout<<"you are unfit";
if(w>=45&&w<55)
cout<<"you are fit";
if(w>=55&&w<60)
cout<<"you are acceptable";
if(w>=60)
cout<<"you are unfit";
}
if(h>=64)
cout<<"you are unfit";
}
getche();
}
```

uzair.tabassumwahla 0 Newbie Poster

Moschops 683 Practically a Master Poster Featured Poster

uzair.tabassumwahla 0 Newbie Poster

CGSMCMLXXV 5 Junior Poster in Training

Moschops 683 Practically a Master Poster Featured Poster

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.