h=input('height:') w=input('weight:') height=float(h) weight=float(w) bmi=float(w)/float(h)/float(h) if bmi>=32:print('severe obesity') elif bmi>=28:print('obesity') elif bmi>=25:print('overweight') elif bmi>=18.5:print('normal') else:print('thin')
Sign in to make a reply
江思年
h=input('height:') w=input('weight:') height=float(h) weight=float(w) bmi=float(w)/float(h)/float(h) if bmi>=32:print('severe obesity') elif bmi>=28:print('obesity') elif bmi>=25:print('overweight') elif bmi>=18.5:print('normal') else:print('thin')