题解 | #计算体重指数#
计算体重指数
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; }