CJCoding With Joseph

BMI Category

Read two doubles: weight in kilograms and height in meters. Compute the Body Mass Index as weight / (height * height) and print the category:

- BMI below 18.5 -> Underweight
- BMI below 25 -> Normal
- BMI below 30 -> Overweight
- 30 or above -> Obese

For example, given the input 70 1.75, the BMI is about 22.9, so the program prints:

Normal

Expected Output:

Normal
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
70 1.75
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.