题解 | #计算体重指数#
计算体重指数
https://www.nowcoder.com/practice/422f6341cf1b4212a7f8c703df111389
#include <stdio.h> int main() { int height=0; int weight=0; double BMI=0.0; scanf("%d %d",&weight,&height); BMI=weight/(height*height/10000.0); printf("%.2lf",BMI); return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目