题解 | #健康评估#
健康评估
https://www.nowcoder.com/practice/08b28e61ff6345febf09969b3a167f7e
#include <stdio.h> #include <math.h> int main() { float weight, height; scanf("%f %f", &weight, &height); float bmi = weight / pow(height,2); if (bmi > 18.5 && bmi < 23.9) printf("Normal\n"); else printf("Abnormal\n"); return 0; }