Closed mehrzad1818 closed 1 year ago
print("Welcome to BMI Calculator.\n")
height = float(input("Enter your height in m: "))
weight = float(input("Enter your weight in kg: "))
bmi = round(((weight // (height ** 2))))
if bmi < 18.5:
print(f"Your BMI is {bmi}. You are underweight.")
elif bmi < 25:
print(f"Your BMI is {bmi}. You have a normal weight.")
elif bmi < 30:
print(f"Your BMI is {bmi}. You are overweight.")
elif bmi < 35:
print(f"Your BMI is {bmi}. You are obese.")
else:
print(f"Your BMI is {bmi}. You are clinically obese.")