วันอาทิตย์ที่ 20 กันยายน พ.ศ. 2558

Lab4x-BMI

def BMI(weight,heightM):
  heightCm=heightM/100
  BMI = weight/(heightCm**2);
  print("height=",heightM,"m")
  print("weight=",weight,"kg")
  print("BMI=",BMI)

BMI(71,167)  

ไม่มีความคิดเห็น:

แสดงความคิดเห็น