题解 | #计算体重指数#
计算体重指数
https://www.nowcoder.com/practice/422f6341cf1b4212a7f8c703df111389
#include <stdio.h> int main() { int weight = 0; int high = 0 ; double BIM = 0.0 ; scanf("%d %d",&weight,&high); //high = high*high; BIM = weight/((high/100.0)*(high/100.0)); printf("%.2lf\n",BIM); return 0; }