#include <stdio.h>
#include <math.h>
int main()
{
int weight = 0;
int height = 0;
//输入
scanf("%d %d", &weight, &height);
//计算
double BMI = weight / pow((height / 100.0), 2); // pow 函数要用double的数据类型
//输出
printf("%.2lf\n", BMI);
return 0;
}
京公网安备 11010502036488号