题解 | #健康评估#
健康评估
http://www.nowcoder.com/practice/08b28e61ff6345febf09969b3a167f7e
int main()
{
float a, b;
scanf("%f %f", &a, &b);
float bmi = a / (b * b);
if (bmi >= 18.5 && bmi <= 23.9)
{
printf("Normal");
}
else
{
printf("Abnormal");
}
return 0;
}