BMI CALCULATOR USING PYTHON

print("Welcome to BMI Calculator")
height = input("Enter your height in m: ")
weight = input("Enter your weight in kg: ")

height2 = float(height)
weight2 = int(weight)

bmi = (weight2)/(height2*height2)

print(bmi)

if (16<bmi<18.4):
    print("You are Underweight")


if (18.5<bmi<24.9):
    print("You are in Normal Range")


if (25<bmi):
    print("You are Overweight")


Leave a comment

Design a site like this with WordPress.com
Get started