12 Answers

New Answer(Solution); #your code goes here 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") elif BMI > 30 : print("Obesity")

Tracking your BMI is a useful way of checking if you’re maintaining a healthy weight. It’s calculated using a person's weight and height, using this formula: weight / height² The resulting number indicates one of the following categories: Underweight = less than 18.5 Normal = more or equal to 18.5 and less than 25 Overweight = more or equal to 25 and less than 30 Obesity = 30 or more Let’s make finding out your BMI quicker and easier, by creating a program that takes a person's weight and height as input and outputs the corresponding BMI category. Sample Input 85 1.9 Sample Output Normal

Mik S. you've already get helped when providing your code attempt (or when asking questions not related to a code task/homework)... however, that's your second attempt today to get code without sharing your own code attempt: sololearn is not a ready to use code provider, but a platform to help each others to solo-LEARN... and you will learn nothing if you only copy-paste ready made solution without trying by your own ^^

Bmi = input(weight/height)**2 x = num num1 < 18.5 num2 >= 18.5 nums.add <25, <30 num >= 30 printf (x) #i don't know how is it work. Or What's the formula?

Yeah, I'd reatart that chapter of the lesson and really focus. Make sure you fully understand before you move on.

#BMI Calculator: weight = float(input()) height = float(input()) bmi = weight/(height**2) if bmi < 18.5: print("Underweight") elif bmi < 25 and bmi >= 18.5: print("Normal") elif bmi < 30 and bmi >= 25: print("Overweight") elif bmi >= 30: print("Obesity")

weight = float(input()) height = float(input()) c = weight/(height**2) if c < 18.5: print("Underweight") elif c < 25 and c >= 18.5: print("Normal") elif c < 30 and c >= 25: print("Overweight") elif c == 30 or c>30: print("Obesity")

Bmi = input(weight/height)**2 x = num num1 < 18.5 num2 >= 18.5 nums.add <25, <30 num >= 30 printf (x)

weight = float(input()) height = float(input()) x = weight/height**2 if x < 18.5: print("Underweight") elif x >=18.5 and x < 25: print("Normal") elif x >= 25 and x < 30: print("Overweight") elif x == 30 or 30 < x: print("Obesity") What's wrong in this it's saying " expected indented block " ???