题解 | #计算体重指数#

计算体重指数

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

#include <stdio.h>

int main()
{
    int weight, high;
    scanf("%d %d", &weight, &high);
        
    double high_metre = high / 100.0;
    
    printf("%.2lf", weight/ (high_metre * high_metre));
    
    return 0;
}
全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

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