+ 1

Please help to solve this!!?

Tracking your BMI is a useful way of checking if you’re maintaining a healthy weight. It’s 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 takes a person's weight and height as input and outputs the corresponding BMI category.

5th Apr 2021, 4:55 AM
Codemurai
Codemurai - avatar
4 Antworten
- 1
weight = int(input()) height = float(input()) hcm = height / 100 BMI = weight / (hcm ** 2) if BMI <= 18.5 : print ("Underweight") elif BMI >= 18.5 and BMI <= 25 : print ("Normal") elif BMI >= 25 and BMI <= 30 : print ("Overweight") else: print ("Obesity") print (BMI )
5th Apr 2021, 5:37 AM
Atul Singh
Atul Singh - avatar
+ 4
Atul Singh please don't post direct answers here. You can give hints to the learner.
5th Apr 2021, 7:12 AM
Atul [Inactive]
+ 3
Show your attempt first
5th Apr 2021, 5:19 AM
Atul [Inactive]
0
Sorry, I finished that work
5th Apr 2021, 5:29 AM
Codemurai
Codemurai - avatar