题解 | #发布信息#

健康评估

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;
}

全部评论

相关推荐

点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务