Discuss / Python / 。。

。。

Topic source

音脆斯挺

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

h = input('your height:') w = input('your weight:') h = float(h) w = float(w) BMI = w/(h*h) BMI = int(BMI) if BMI > 32: print('severe obesity') print(BMI) elif BMI >= 32: print('obsity') print(BMI) elif BMI >= 28: print('overweight') print(BMI) elif BMI >= 25: print('normal') print(BMI) else: print('a light') print(BMI)


  • 1

Reply