Discuss / Python / 打卡

打卡

Topic source

Agoni52Hz_

#1 Created at ... [Delete] [Delete and Lock User]
name = input("你的名字:")height = float(input("你的身高(m):"))weight = float(input("你的体重(kg):"))bmi = weight/(height**2)print("健康状况")if bmi < 18.5:    print (过轻)elif bmi < 25:    print ("正常")elif bmi < 28:    print ("过重")elif bmi < 28:    print ("肥胖")else:    print ("过度肥胖")

  • 1

Reply