Can someone help with this BMI calculator code please? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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")

25th Dec 2022, 1:05 AM
Teraami
Teraami - avatar
3 Answers
+ 3
BMI = (weight/(height*height))
25th Dec 2022, 1:59 AM
Lwez
Lwez - avatar
+ 2
Thank you so much it actually helped
25th Dec 2022, 2:01 AM
Teraami
Teraami - avatar
+ 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")
25th Dec 2022, 1:59 AM
Lwez
Lwez - avatar