Programming Fundamentals
วันจันทร์ที่ 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
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น