How to display BMI(Body mass index )using python program

 BODY MASS INDEX

Body Mass Index (BMI) is a person’s weight in kilograms (or pounds) divided by the square of height in meters (or feet). A high BMI can indicate high body fatness. 

CODING OF THE PROGRAM




Height=float(input("Enter the height in cm: "))
Weight=float(input("Enter your weight in kg: "))
BMI=Weight/ (Height/100)**2
print("Your Body mass index is ",BMI)
if BMI<=18.4:
       print("You are under weigh")
elif  BMI<=24.9:
       print("Congratulations! You are Healthy")
elif BMI<=29.9:
              print("You are overweigh")
else:
       print("You are Obese")

OUTPUT OF THE PROGRAM




                                                                   THANK YOU😊

Comments

Popular posts from this blog

Program to find out whether a given number is prime number or not in python[using break statement]

How to display Floyd's triangle in python program