calculateBMI function

double calculateBMI(
  1. double weight,
  2. double height
)

Takes weight and height and return BMI (All value must be of type double)

Implementation

double calculateBMI(double weight, double height) {
  return weight / (height * height);
}