C程序无法正常使用,各位大佬出来多多指导一下,谢谢了!
/*根据身高体重测量BMI值*/#include<stdio.h>
float BMI(float height, float weight);
int main()
{
float height;
float weight;
float BMI;
printf("请输入您的身高: \n");
scanf("%f",&height);
printf("请输入您的体重: ");
scanf("%f",&weight);
BMI=(height,weight);
printf("您的BMI为:");
printf("%.2f\n",BMI);
return 0;
}
float BMI(float height, float weight)
{
float BMI =(weight*height);
return BMI;
}
[此贴子已经被作者于2018-8-31 20:10编辑过]