Make Python Program To Calculate of Body Mass Index.

 Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women.

Weight = float(input("Enter your weight (In kg) :"))
Height = float(input("Enter your height (In cm) :"))
Height /= 100
BMI = Weight / (Height)**2

if BMI>=19 and BMI<=25:
    print("you are healthy")
elif BMI < 19:
    print("You are underweighted")
elif BMI > 25:      
    print("You are overweighted")
else:
    print("Please enter valid info")

Comments

Post a Comment