(1)身体质量指数(BMI,Body Mass Index)是国际上常用的衡量人体肥胖程度和是否健康的重要标准,计算公式如下:
BMI=体重/身高**2
体重单位:公斤(kg),身高单位:米(m)
(2)分两行输入身高与体重,输入身高单位:厘米(cm),输入体重单位:公斤(kg),要求输入为整数;
(3)计算BMI值
def bmi(high,weight):
high=int(input("身高:"))
weight=int(input("体重:"))
BMI=weight/high**2
print(BMI)
bmi()