Advertisement
gdoria21

Untitled

Mar 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import math
  2.  
  3. def BMI():
  4. print "Put in your Weight and Height"
  5. print "Weight:"
  6. weight = float(raw_input())
  7. print "Height:"
  8. height = float(raw_input())
  9. bmi = weight / height**2
  10. print bmi
  11. if bmi < 18.5:
  12. print "underweight"
  13. elif 18.5 < bmi < 24.9:
  14. print "Normal weight"
  15. elif 25.0 < bmi < 29.9:
  16. print "Overweight"
  17. elif bmi > 30.0:
  18. print "obese"
  19.  
  20. while True:
  21. BMI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement