Created
July 19, 2017 14:45
-
-
Save vihar/52f8317f4e5a68c3e6881e401a482586 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weight = 77 | |
height = 180 | |
bmi = (weight / (height**2)) * 10000 | |
print("Computing…") | |
print("Your bmi is {}\n".format(bmi)) | |
if bmi < 18.5: | |
print("Underweight") | |
elif 18.5 <= bmi <= 24.99: | |
print("Perfect ! Normal weight") | |
elif 25.00 <= bmi <= 30.00: | |
print("Overweight") | |
elif bmi > 30.00: | |
print("Obese") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment