Practice · 4 of 6
BMI Category
CHALLENGE
Difficulty: beginner+25 XP
**Description:** Given a BMI value n (real number), print:
- GAO if n < 18.5
- BINH if 18.5 ≤ n < 25.0
- CAO if n ≥ 25.0
**Input:** One real number n (10.0 ≤ n ≤ 40.0).
**Output:** One word from {GAO, BINH, CAO}.
**Example:** 17.0 → GAO; 18.5 → BINH; 25.0 → CAO.
*Mind the boundaries:* exactly 18.5 is BINH, exactly 25.0 is CAO.
Press Submit to check your solution.
Back to lesson: Practice: Starter Set