+ 1

need help with my BMI calculator

weight = int(input()) height =float(input ()) BMI= weight / (height)**2 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")

29th Jun 2022, 8:56 AM
RazaHussain Khalid
2 Answers
+ 2
got the answer weight = float(input()) height =float(input ()) BMI= weight / (height)**2 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")
29th Jun 2022, 9:06 AM
RazaHussain Khalid
+ 1
if BMI < 18.5 elif BMI < 25 elif BMI < 30 else
29th Jun 2022, 9:05 AM
ŠœŠ°Ń€Ń‚ŠøŠ½ šŸ˜‘šŸŽµ
ŠœŠ°Ń€Ń‚ŠøŠ½ šŸ˜‘šŸŽµ - avatar