#include <stdio.h> int main() { float height = 0; float weight = 0; scanf("%f %f", &weight, &height);//输入身高体重 float BMI = weight / (height * height);//BMI计算公式 if (BMI >= 18.5 && BMI <= 23.9)//正常的条件 { printf("Normal\n"); } else { printf("Abnormal\n"); } return 0; }