19. Calculate BMI
Lesson 20 of 31 in Coddy's 30 Days of Logic Building in C++ course.
Challenge
EasyWrite a function to calculate the Body Mass Index (BMI).
- Input: Weight: 70, Height: 1.75
- Output: 22.8571
Try it yourself
float calculateBMI(float weight, float height) {
// write your code below
}All lessons in 30 Days of Logic Building in C++
1Introduction
Introduction