Saturday, July 18, 2020

Easy Python Program to know your BMI [FREE CODE]

*****
This short Python program finds out your Body Mass Index when you enter your weight and height. Check How Fit you are !!
*****



a = int(input("Enter your weight in kilograms : "))
b = int(input("Enter your height in cm : "))
c = b/100
e = float(a/c ** 2)
print("Your BMI is",round(e))
if e > 25:
    print("OHH NO ! YOU ARE OVERWEIGHT :(")
elif e >= 18.5 and e <= 24.9:
    print("YOU ARE FIT AND HEALTHY :)")
else:
    print("DEAR, YOU ARE UNDERWEIGHT :|")
***********************************************************************************
See Program in action