1 / 1

표준 체중 관리

표준 체중 관리. 키와 몸무게를 입력받은 후 표준 체중을 구하고 표준체중보다 얼마나 초과인지 아니면 얼마나 미달인지를 표시하기 차이 = 자신의 몸무게 - 표준체중 표준 체중과의 차이가 0 이상이면  ” O.Okg 초과 ” 아니라면  “ O.Okg 미달” 표준 체중 = ( 키 -100) * 0.9. 키는 ? 161 체중은 ? 56 ============================================

dyani
Download Presentation

표준 체중 관리

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 표준 체중 관리 • 키와 몸무게를 입력받은 후표준 체중을 구하고 표준체중보다 얼마나 초과인지 아니면 얼마나 미달인지를 표시하기 • 차이 = 자신의 몸무게 -표준체중 • 표준 체중과의 차이가 0 이상이면  ” O.Okg초과” 아니라면 “ O.Okg미달” • 표준 체중 = (키-100) * 0.9 키는? 161 체중은? 56 ============================================ 키가 161cm인 사람의 표준 체중 54.9Kg 보다 1.1kg 초과 height std_weight differ my_weight 또는 ‘보다 1.2kg 미달’ 중 한 개를 출력하도록 if문을 사용한다. 주) differ가 음수라면 –differ 로식을 표현하면 양수가 된다.

More Related