Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created October 9, 2021 12:14
Show Gist options
  • Save moulik-source/3a3b32722c89229f9af6404904edc0c7 to your computer and use it in GitHub Desktop.
Save moulik-source/3a3b32722c89229f9af6404904edc0c7 to your computer and use it in GitHub Desktop.
BMI calculator
#Weight & height
height = input("Please enter your height in meter: ")
weight = input("Please enter your weight in kg: ")
# bmi = weight / height square
bmi = int(weight) / float(height) ** 2
bmi_convert = int(bmi)
print(bmi_convert)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment