Completed BMI Calculator

From Oscar G Mendez, 4 Weeks ago, written in Python, viewed 37 times.
URL http://codebin.org/view/74e4c143 Embed
Download Paste or View Raw
  1. name = "Oscar"
  2. height_in = 72
  3. weight_lbs = 170
  4.  
  5. bmi = weight_lbs / (height_in ** 2) * 703
  6. print ("BMI: " + str(bmi))
  7.  
  8.  
  9. if bmi > 25:
  10.     print(str(name) + " is overweight")
  11. elif bmi < 18:
  12.     print(str(name) + " is underweight")
  13. else:
  14.     print(str(name) + " is healthy")

Reply to "Completed BMI Calculator"

Here you can reply to the paste above