Please guys help me on making BMI calculater | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please guys help me on making BMI calculater

This was my code help me to fix bugs please weight = int(input()) height = float(input()) BMI = weight/height**2 if BMI < 18.5: print("Underweight") if BMI >= 25 and BMI < 30: print ("Normal") if BMI >30: print ("Obesity")

15th Aug 2022, 1:51 PM
Farai Tambo
4 Answers
+ 3
"Normal" when BMI is Between 18.5 to 25 And "Overweight" when Bmi >= 25 and less than 30. Missing this ...
15th Aug 2022, 2:12 PM
Jayakrishna 🇮🇳
0
weight = int(input("Enter Weight: ")) height = float(input("Enter Hight: ")) BMI = weight/height**2 if BMI < 18.5: print("Underweight") elif BMI >= 25 and BMI < 30: print("Normal") elif BMI >30: print("Obesity")
15th Aug 2022, 2:06 PM
Sreeju
Sreeju - avatar
0
Your Code weight = int(input()) height = float(input()) BMI = weight/height**2 if BMI < 18.5: print("Underweight") if BMI >= 25 and BMI < 30: print ("Normal") if BMI >30: print ("Obesity") ^ # Don't Use Space Between print and ()
15th Aug 2022, 2:08 PM
Sreeju
Sreeju - avatar
0
weight = int(input("Enter Weight: ")) height = float(input("Enter Hight: ")) BMI = weight/height**2 if BMI < 18.5 and BMI > 25: print("Normal") elif BMI >= 25 and BMI < 30: print("Overweight") elif BMI >= 30: print("Obesity")
15th Aug 2022, 2:16 PM
Sreeju
Sreeju - avatar