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.

8th Dec 2022, 7:29 AM
Mehbu
Mehbu - avatar
3 Respostas
+ 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.
8th Dec 2022, 7:44 AM
Per Bratthammar
Per Bratthammar - avatar
0
https://code.sololearn.com/WjPErs4WiNz5/?ref=app
8th Dec 2022, 7:53 AM
Calviղ
Calviղ - avatar