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)
Sign in to make a reply
音脆斯挺
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)