Skip to main content

BMI Toolkit

Challenge on lesson: Checkpoint: Functions

Implement double bmi(double weight_kg, double height_m) = weight / (height*height), and const char* bmi_band(double b): <18.5 -> "under", <25 -> "normal", <30 -> "over", else "obese".

Difficulty: beginner

Back to lesson: Checkpoint: Functions