题解 | #发布信息#
健康评估
http://www.nowcoder.com/practice/08b28e61ff6345febf09969b3a167f7e
#include<stdio.h>
int main()
{
int weight = 0;
float high = 0;
scanf("%d%f", &weight, &high);
float a = weight / (high*high);
if (a<23.9&&a>18.5)
printf("Normal");
else
printf("Abnormal");
return 0;
}
int main()
{
int weight = 0;
float high = 0;
scanf("%d%f", &weight, &high);
float a = weight / (high*high);
if (a<23.9&&a>18.5)
printf("Normal");
else
printf("Abnormal");
return 0;
}