Skip to content

Instantly share code, notes, and snippets.

@d0mmie
Created January 8, 2021 13:54
Show Gist options
  • Save d0mmie/09da36c5a42cf385c32acd23ef82c82a to your computer and use it in GitHub Desktop.
Save d0mmie/09da36c5a42cf385c32acd23ef82c82a to your computer and use it in GitHub Desktop.
weight = float(input("Input weight in kg: "))
height = float(input("Input height in cm: "))
print("Weight = %.2f kg., Height = %.2f, BMI = %.2f" % (weight, height, (weight / pow(height / 100, 2))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment