题解 | #计算体重指数#

计算体重指数

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

全部评论

相关推荐

01-26 18:45
门头沟学院 Java
一天代码十万三:哥们实习再包一下吧,产出太笼统了,尽量体现业务
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务