Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. mass = float(input("Input your mass in kilograms. "))
  2. height = float(input("Input your height in meters. "))
  3. bMI = mass / height**2
  4. bMIPrime = bMI/25
  5. print("Your BMI Prime is ", bMIPrime)
  6. if bMIPrime < .6:
  7. print("You are morbidly underweight.")
  8. elif bMIPrime < .64: ##Elif function will keep it in range
  9. print("You are severely underweight.")
  10. elif bMIPrime < .74:
  11. print("You are underweight.")
  12. elif bMIPrime < 1:
  13. print("You are normal. Weight-wise, that is. You could be abormal for other reasons. Scary, isn't it?")
  14. elif bMIPrime <1.2: ##Hope they don't get offended
  15. print("You are overweight.")
  16. elif bMIPrime < 1.4:
  17. print("You are moderately obese.")
  18. elif bMIPrime < 1.6: ##Really hope they don't get offended
  19. print("You are severely obese.")
  20. else: ##Really, really hope they don't get offended
  21. print("You are morbidly obese.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement