weight = float(input("Enter weight (in kg): "))
height = float(input("Enter height (in m): "))
bmi = weight / (height * height) # formula
value = "" # value of bmi
if bmi < 18.5:
value = "underweight"
elif 18.5 < bmi < 25:
value = "normal weight"
elif 25 < bmi < 30:
value = "overweight"
elif 30 < bmi < 35:
value = "obese"
elif bmi > 35:
value = "clinically obese"
print(f"You are {value}.")
#simple BMI calculator
x = int(input("Enter Weight: "))
y = float(input("Enter Height: "))
z = x/y**2
if z<18.5:
print("Underweight")
elif z==18.5 or z<25:
print("Normal")
elif z==25 or z<30:
print("Overweight")
else:
print("Obesity")