Monday, October 19, 2015

Lab 4x Hello Python - Calculate body mass index (BMI) (function)

def setup():
    cal_bmi(61,165)

def cal_bmi(wit,hit):
        bmi=wit/((hit/100)*(hit/100))
        print("Your Weight is" ,wit)
        print("Your Height is" ,hit)
        print("Your BMI is" ,bmi)
        return bmi
 
setup()

No comments:

Post a Comment