Discuss / Python / 7.21打卡3

7.21打卡3

Topic source

凡骨-

#1 Created at ... [Delete] [Delete and Lock User]

bmi = weight/(height*2)

print ('bmi=',bmi)

if bmi<18.5 :

    print ('过轻')

elif 18.5<=bmi and bmi<25 :

    print ('正常')

elif 25<=bmi and bmi<32 :

    print('肥胖')

else :

    print('严重肥胖')

pass

input在网页窗口不能用,用的VS编辑器莫名其妙调试不了,不知道咋过搞了


  • 1

Reply