#P127. 练21.4 体质指数BMI
练21.4 体质指数BMI
Description
Body Mass Index (BMI) is a standard measure of body fatness and health. It is calculated as follows:
BMI = weight (kg) ÷ (height (m))²
Given an adult's height and weight, determine their body composition based on BMI.
| Body Composition | BMI (Chinese Standard) |
| Underweight | <18.5 |
| Normal | 18.5~23.9 |
| Overweight | 24~27.9 |
| Obese | 28~39.9 |
| Severely Obese | ≥40.0 |
Input Format
Two floating-point numbers (float), representing height and weight respectively.
Output Format
Output the body composition category.
Sample
1.71 62Normal