题解 | #健康评估#

健康评估

https://www.nowcoder.com/practice/08b28e61ff6345febf09969b3a167f7e

#include <stdio.h>

int main() {
    double height = 0;
    double weight = 0;

    scanf("%lf %lf", &weight, &height);
    printf("%s\n", (weight / (height * height) >= 18.5 && (weight / (height * height)) <= 23.9) ? "Normal" : "Abnormal");

    return 0;
}

全部评论

相关推荐

点赞 评论 收藏
分享
10-13 16:58
门头沟学院 Java
面了100年面试不知...:一周七天,一天去一家上班😍😍😍
点赞 评论 收藏
分享
notbeentak...:真的nc,算毕业6月份,要给这种b公司打半年多白工😅
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务