BMI Toolkit
Challenge on lesson: Checkpoint: Functions
CHALLENGE
Difficulty: beginner+25 XP
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".
Press Submit to check your solution.
Back to lesson: Checkpoint: Functions