วันจันทร์ที่ 21 กันยายน พ.ศ. 2558

Lab 4x - (Python) BMI Calculator

>>> def cal_bmi(weight,height):
   bmi = weight/((height/100)**2)
   print("Youe BMI is ",bmi)

 
>>> cal_bmi(62,173)
Youe BMI is  20.715693808680545


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

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