Untitled
unknown
plain_text
a year ago
544 B
8
Indexable
#author Marco Alonso-Paz
print ("BMI Calaculator")
weight = float(input("Please enter weight in pounds: "))
feet = int(input("First, please enter your height in feet: "))
inches = int(input("Then, Please enter your remaining height in inches: "))
height = feet * 12 + inches
bmi = weight * 0.45359237 / ((height * 0.0254) ** 2)
# Display Results
print("BMI is", bmi)
if bmi < 18.5:
print("You are: Underweight")
elif bmi < 24.9:
print("You are: Normal")
elif bmi < 29.9:
print("You are: Overweight")
else:
print("You are: Obese")
Editor is loading...
Leave a Comment