height = float(input('请输入您的身高(m):'))weight = float(input('请输入您的体重(kg):'))BMI=weight/height**2print(f"你的BMI是{BMI}")if BMI>32: print("严重肥胖")elif BMI>=28: print("肥胖")elif BMI>=25: print("过重")elif BMI>=18.5: print("正常")else: print("过轻")
Sign in to make a reply
Herman.