simple bmi calculator using python
Hight = float(input("What is Your Hight in m:- ")) weight = float(input("What is your weight in kg:- ")) calculator = weight/Hight ** 2 print(calculator)
BMI CALCULATOR CODE IN PYTHON
h=float(input("Enter your height in meters: ")) w=float(input("Enter your Weight in Kg: ")) BMI=w/(h*h) print("BMI Calculated is: ",BMI) if(BMI>0): if(BMI<=16): print("You are very underweight") elif(BMI<=18.5): print("You are underweight") elif(BMI<=25): print("Congrats! You are Healthy") elif(BMI<=30): print("You are overweight") else: print("You are very overweight") else: print("enter valid details")