- 2
Asking for help please !
BMI Calculator
4 Answers
+ 3
Where is your code? How are we supposed to help you if you aren't showing some effort?
+ 1
weight=float(input())
height=float(input())
x=weight/(height * height)
if x < 18.5 :
print ("underweight")
else :
if x<25 :
print ("normal")
else :
if x < 30 :
print ("overweight")
else :
print ("obesity")
+ 1
Sorry, i forget to paste my code last time, so this is my code, i hope that you find the error
0
Instead of else and then an if why not an elif like this:
elif bmi < 25:
print ('Normal')
And all printed words should start with a capital to pass the test.