Bim calculator I don't know why it does not work for all cases, somebody knows ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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