Calculate a Body Mass Index from a weight in pounds and a height in inches, then report which category it falls into.
BMI is a crude measure and a poor one for judging any individual person — but it makes a good code challenge.
if / elif / else| BMI | Category |
|---|---|
| Below 18.5 | Underweight |
| 18.5 up to 24.9 | Normal weight |
| 25 up to 29.9 | Overweight |
| 30 and above | Obesity |
Enter your weight in pounds: 180 [Enter]Enter your height in inches: 70 [Enter]
Your BMI is 25.82, which is considered Overweight.