0

Bim calculator I don't know why it does not work for all cases, somebody knows ?

#your code goes here weight=int(input()); height=float(input()); bmi=(weight)/float(height**2); if (weight<18.5): print("Underweight") elif (weight>=18.5) and (weight<25): print ("Normal") elif(weight>=25) and (weight <30): print ("Overweight") elif (weight >30): print ("Obesity")

4th Sep 2022, 1:48 PM
Cédric De Craim
Cédric De Craim - avatar
2 odpowiedzi
+ 2
You need compare bmi, not weight.
4th Sep 2022, 2:02 PM
Jayakrishna 🇮🇳
0
I knew I knew 😁
4th Sep 2022, 2:58 PM
Cédric De Craim
Cédric De Craim - avatar