Body Mass Index



    The code will calculate the body mass index of the user. The user enters their height in meters and their weight in kilograms. The body mass index is then determined to be 16.6.

    # Work Out Body Mass Index
    height = input("enter your height in m: ")
    weight = input("enter your weight in kg: ")
    bmi = int(weight) / float(height) **2
    bmi_as_int = int(bmi)
    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.