Answers for "Advanced bmi calculator using python"

1

Advanced bmi calculator using python

User_height = float(input("Enter your height in cm: "))
User_weight = float(input("Enter your weight in kg: "))
BMI = User_weight / (User_height/100)**2
print(f"You BMI is {BMI}")
if BMI <= 18.4:
    print("You are underweight.")
elif BMI <= 24.9:
    print("You are healthy.")
elif BMI <= 29.9:
    print("You are over weight.")
elif BMI <= 34.9:
    print("You are severely over weight.")
elif BMI <= 39.9:
    print("You are obese.")
else:
    print("You are severely obese.")
Posted by: Guest on July-26-2021
2

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)
Posted by: Guest on July-26-2021

Code answers related to "Advanced bmi calculator using python"

Python Answers by Framework

Browse Popular Code Answers by Language