0
What are the correct code that should be written here?
Tracking my BMI is useful way of checking if I'm maintaining a healthy weight. It is calculated using a person's weight and height using this formula: weight/height² The resulting number indicates one of the following categories Underweight= less than 18.5 Normal= more or equal to 18.5 and less than 25 Overweight= more or equal to 25 and less than 30 Obesity= 30 or more Let's make finding out your BMI quicker and easier by creating a program that a person's weight and height as input and output the corresponding BMI category.
3 Réponses
+ 4
Hi, Mehbu !
The correct code? I suppose there are about as many solutions as they are coders trying to solve the problem. My suggestion is that you try to contribute with your own solution yourself.
But if you necessarily needs to check out others solutions, there are hundreds of them there on Playground. Just search for them.
0
https://code.sololearn.com/WjPErs4WiNz5/?ref=app