Discuss / Python / 交作业

交作业

Topic source

#1 Created at ... [Delete] [Delete and Lock User]
 
height = 1.75
weight = 80.5
bmi = weight/(height**2)
if bim <= 18.5:
     print("guoqing")
 elif bim <= 25:
     print("zhengchang")
 elif bim <= 28:
     print("guozhong")
 elif bim <= 32:
     print("feipang")
 else:
     print ("yanzhongfeipang")


  • 1

Reply