+ 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")
1 Antwort
+ 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")