- 2
BMI calculator
It's saying expected indented block ?
6 Respostas
+ 1
Why you write your code in the tags?
+ 1
Ravi venkateswarlu
Please show your attempts.
0
Show your attempt
0
Any another simple way ?
0
Thanks mam finally I got answer this way
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")
0
PLEASE SOMEONE TELL ME WHAT'S WRONG HERE!? 🙏
h = float(input("Enter Your Height: "))
w = float(input("Enter Your Weight: "))
bmi = w/(h**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')
else:
print('Wrong Input')