BMI (Body Mass Index)
Problem Description
The body mass
index (BMI) is a measure for human body shape based on an
individual's mass and height. We want to write a program to calculate
the BMI of a user.
Specification
- Input: mass (in kg) and height (in m).
- Output: BMI
- For male students, round to the nearest tenth.
- For female students, round to the nearest hundredth.
- Relationship: BMI = mass / (height ** 2)