0

WHAT is the problem of my code in calculating a BMI... because in results i have 4correct and 1wrong.in no3 in BMI calculator

w = float(input()) h = float(input()) BMI = w / h**2 if BMI < 18.5: print("Underweight") elif BMI >=18.5 and BMI <25: print("Normal") elif BMI >=25 and BMI <30: print("Overweigth") elif BMI >=30: print("Obesity")

1st Oct 2022, 2:43 AM
Gerald Eledia Villarias
5 Answers
+ 3
Because You wrote "Overweigth" and it is "Overweight"
1st Oct 2022, 6:35 AM
Gaston Disciglio
Gaston Disciglio - avatar
+ 1
take w as int(input ()) h as float(input())
1st Oct 2022, 6:02 AM
Arun Venkatesh
Arun Venkatesh - avatar
+ 1
Arun Venkatesh.N not necessarily
1st Oct 2022, 6:47 AM
Gaston Disciglio
Gaston Disciglio - avatar
+ 1
Gaston Disciglio thank you🥰
1st Oct 2022, 7:32 AM
Gerald Eledia Villarias
0
😁🙌
1st Oct 2022, 12:39 PM
Gaston Disciglio
Gaston Disciglio - avatar