#include<iostream>
#include<iomanip>
using namespace std;
void main()
{
double Weight, height, BMI;
cout << "=========================================
";
cout << setw(30) << "Enter Weight in pound: ";
cin >> Weight;
cout << "
=========================================
";
cout << setw(30) << "Enter height in inches: ";
cin >> height;
cout << "
=========================================
";
const double Kg_per_pound = 0.45359237;
const double Mtr_per_inch = 0.025;
double WeightInKg = Weight * Kg_per_pound;
double heightInInches = height * Mtr_per_inch;
BMI = WeightInKg / (heightInInches * heightInInches);
cout << setw(18) << "BMI: " << BMI << endl;
cout << "
=========================================
";
if (BMI < 18.5)
cout << setw(22) << "Underweight." << endl;
else if (18.5 <= BMI < 25.0)
cout << setw(22) << "Normal." << endl;
else if (25.0 <= BMI < 30.0)
cout << setw(22)<< "Overweight." << endl;
else if (30.0 <= BMI)
cout << setw(22)<< "Obese." << endl;
cout << "
=========================================
";
}