BMI Calculator

    0

    0

    Your BMI is 27.2, you are obese.

    height = float(input("enter your height in m: "))
    weight = float(input("enter your weight in kg: "))
    bmi = round(weight / height**2)
    if bmi < 18.5:
      print(f"Your BMI is {bmi}, you are underweight.")
    elif bmi < 25:
      print(f"Your BMI is {bmi}, you have a normal weight.")
    elif bmi < 30:
      print(f"Your BMI is {bmi}, you are slightly overweight.")
    elif bmi < 35:
      print(f"Your BMI is {bmi}, you are obese.")
    else:
      print("Your BMI is {bmi}, you are clinically obese.")
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.