más
kg = input("請輸入體重: ")
m = input("請輸入身高: ")
BMI = float(kg)/(int(m)*int(m))
if BMI > 32:
print(f'非常肥胖')
elif 28 <= BMI <= 32:
print(f'肥胖')
elif 24 <= BMI <= 27:
print(f'過重')
elif 18.5 <= BMI <= 23.9:
print(f'正常')
else:
print(f'消瘦')
Rabbit