+ 2

Guys my quiz is bmi calculator and no Matt how much i try it keeps declining my code what should i do? Can you check my code

height = float(input()) weight = float(input()) BMI = weight / (height)**2 if BMI <= 18.4: print("underweight") elif BMI <= 24.9: print("normal") elif BMI <= 29.9: print("overweight") else: print("obesity")

21st Jun 2021, 8:00 AM
Mandana Hazarian
Mandana Hazarian - avatar
1 Answer
+ 6
weight = float(input()) height = float(input()) BMI = weight / (height)**2 if BMI <= 18.5: print("Underweight") elif BMI <= 25: print("Normal") elif BMI <= 30: print("Overweight") else: print("Obesity")
21st Jun 2021, 8:43 AM
Simba
Simba - avatar