MagicWinnie

Untitled

Dec 24th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. #1
  2. m = float(input("Введите массу: "))
  3. h = float(input("Введите рост: "))
  4. imt = m/(h*h)
  5. print("ИМТ:", imt)
  6. if imt < 16:
  7.   print("Выраженный дефицит массы тела")
  8. elif (imt >= 16) and (imt < 18.5):
  9.   print("Недостаточная (дефицит) массы тела")
  10. elif (imt >= 18.5) and (imt < 25):
  11.   print("Норма")
  12. elif (imt >= 25) and (imt < 30):
  13.   print("Избыточная масса тела (предожирение)")
  14. elif (imt >= 30) and (imt < 35):
  15.   print("Ожирение первой степени")
  16. elif (imt >= 35) and (imt < 40):
  17.   print("Ожирение второй степени")
  18. elif imt >= 40:
  19.   print("Ожирение третьей степени (морбидное)")
Add Comment
Please, Sign In to add comment