請寫出一個程式可接受使用者輸入體重與身高 並計算出BMI值?
Body Mass Index (BMI) is a number calculated from a person weight and height. BMI provides a reliable indicator of body fatness for most people and is used to screen for weight categories that may lead to health problems.
w = 體重,單位:公斤;
h = 身高,單位:米;
........BMI...........Weight Status
......Below 18.5 ......Underweight
.....18.5 – 24.9 ..........Normal
......25.0 – 29.9 .......Overweight
..30.0 and Above .......Obese
沒有留言:
張貼留言