height, weight = eval(input("請輸入身高(米)和體重\(公斤)[逗號割開]:"))
bim = weight / pow(height,2)
print("BIM值爲{:.2f}".format(bim))
who, nat= "",""
if bim < 18.5:
who,nat = "偏瘦","偏瘦"
elif 18.5 <= bim <24:
who, nat="正常","正常"
elif 24<= bim <25:
who, nat = "正常","偏胖"
elif 25<= bim <28:
who, nat = "偏胖","偏胖"
elif 28<= bim <30:
who, nat = "偏胖","肥胖"
print("BMI 指標爲國際:{} BMI國內指標:{}".format(who,nat))