+ 1
Could you please help me with my project?
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. Sample Input 85 1.9 Sample Output Normal
7 Answers
+ 1
Thanks â€
0
weight = int(input())
height = float(input())
check_bmi = round (weight / (height **2))
if check_bmi < 18.5:
print("Underweight")
elif check_bmi >= 18.5 and check_bmi < 25:
print("Normal")
elif check_bmi >= 25 and check_bmi < 30:
print("Overweight")
elif check_bmi >= 30:
print("Obesity")
0
This is my code but it contains error
0
I couldn't find it