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

