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")
2 odpowiedzi
+ 2
You need compare bmi, not weight.
0
I knew I knew 😁