题解 | #计算体重指数#

计算体重指数

https://www.nowcoder.com/practice/422f6341cf1b4212a7f8c703df111389

#include <stdio.h>

int main() {
    float height,weight;
    float BMI;
    scanf("%f %f",&weight,&height);
    BMI=weight/((height/100)*(height/100));
    printf("%.2f",BMI);
    return 0;
}

全部评论

相关推荐

06-12 16:23
已编辑
小米_软件开发(准入职员工)
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
07-01 12:22
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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