BC58 健康评估
思路:
step1:输入体重和身高;计算BMI,按要求输出打印;
代码如下:
w,h = list(map(float,input().split()))
BMI = w / (h**2)
if 18.5<= BMI <= 23.9:
print('Normal')
else:
print('Abnormal')
w,h = list(map(float,input().split()))
BMI = w / (h**2)
if 18.5<= BMI <= 23.9:
print('Normal')
else:
print('Abnormal')