0
BMI calculator help??
This is my BMI calculator code; W= int(input()) H= float(input()) BMI=(W/(H**2)) if BMI<18.5: print("Underweight") elif BMI>=18.5 and BMI<30.0: print("Normal") elif BMI>30.0: print("Obesity") However, all of the tests pass expect for test three? Iâve tried other methods but test three keeps failing and I donât understand why. Has anyone else had this issue? Or am I doing something wrong?
2 Answers
+ 2
Sorry guys, didnt read the next question which was to add overweight BMI>25 and BMI<30: add this and the code will pass test 3