fork download
  1. while True:
  2. height = int(input('신장: ')) * 0.01
  3. weight = int(input('몸무게: '))
  4. bmi = weight / (height * height)
  5.  
  6. if bmi < 18.5:
  7. print('저체중이시네요?')
  8. elif 18.5 <= bmi <= 22.9:
  9. print('정상이시네요?')
  10. elif 23 <= bmi <= 24.9:
  11. print('비만 전 단계시네요?')
  12. elif 25 <= bmi <= 29.9:
  13. print('1단계 비만이시네요?')
  14. elif 30 <= bmi <= 34.9:
  15. print('2단계 비만이시네요?')
  16. else:
  17. print('3단계 비만이시네요?')
  18.  
  19. print("다시 하시겠습니까?")
  20. reply = input()
  21.  
  22. if reply == "yes":
  23. continue
  24. else:
  25. break
  26.  
Runtime error #stdin #stdout #stderr 0.04s 62800KB
stdin
Standard input is empty
stdout
신장: 
stderr
Traceback (most recent call last):
  File "prog.py", line 2, in <module>
    height = int(input('신장: ')) * 0.01
EOFError