BMI (Body Mass Index) is calculated using the formula:
BMI = weight / height**2
Where:
- weight is the person's weight in kilograms (kg).
- height is the person's height in meters (m).
Steps to Calculate BMI:
- Measure your weight in kilograms.
- Measure your height in meters.
- Square your height (multiply height by itself).
- Divide your weight by the squared height.
Example:
If a person weighs 70 kg and is 1.75 m tall:
- Square the height: (1.75^2 = 3.0625)
- Calculate BMI: (BMI = 70 / 3.0625 \approx 22.86)
If you want to practice calculating BMI programmatically, consider trying out related labs on LabEx!
