height = 1.75
weight = 80.5
bmi = (weight/(height**2))
if 18.5 <= bmi <= 25:
print("normal")
elif bmi < 18.5:
print("too Thin")
elif 25 < bmi <= 28:
print("over weight")
elif 28 < bmi <= 32:
print("heavy")
else:
print("too heavy")
Sign in to make a reply
胖胖
height = 1.75
weight = 80.5
bmi = (weight/(height**2))
if 18.5 <= bmi <= 25:
print("normal")
elif bmi < 18.5:
print("too Thin")
elif 25 < bmi <= 28:
print("over weight")
elif 28 < bmi <= 32:
print("heavy")
else:
print("too heavy")