+ 1
Can someone help with this BMI calculator code please?
weight = int(input ()) height = float(input()) BMI =(weight / height*height) if BMI <18.5: print ("Underweight") elif BMI>=18.5 and BMI<=25: print ("Normal") elif BMI>=25 and BMI<=30: print ("Overweight") else: print ("Obesity")
3 Respostas
+ 3
BMI = (weight/(height*height))
+ 2
Thank you so much it actually helped
+ 1
#your code goes here
weight = int(input ())
height = float(input())
BMI =(weight / (height*height))
if BMI <18.5:
print ("Underweight")
elif BMI>=18.5 and BMI<=25:
print ("Normal")
elif BMI>=25 and BMI<=30:
print ("Overweight")
else:
print ("Obesity")