Discuss / Python / 作业

作业

Topic source

愚昧陈

#1 Created at ... [Delete] [Delete and Lock User]
# _*_ coding: utf_8 _*_

a = input('身高:')
b = input('体重:')
height = float(a)
weight = float(b)

BIM =  weight/(height*height)
print(BIM)
if BIM < 18.5:
    print('过轻');
elif BIM<=25:
    print('正常'); 
elif BIM<=28:
    print('过重');
elif BIM<=32:
    print('肥胖');
else:
    print('严重肥胖')

  • 1

Reply