60分,大佬求带
查看原帖
60分,大佬求带
814481
zxhiding楼主2022/10/3 22:19
#include <stdio.h>
int main() {
    double m{}, h{};
    scanf("%lf %lf", &m, &h);
    double c = m * 1.0 / (h * h);
    if (c < 18.5) {
        printf("Underweight");
    }
    else if (c >= 18.5 && c < 24) {
        printf("Normal");
    }
    else if (c >= 24) {
        printf("%lf\nOverweight",c);
    }
    return 0;
}
2022/10/3 22:19
加载中...