这是题
这是我写的代码
#include <stdio.h>
int main()
{
int m,n,p,q;
float faHeight,moHeight,boy,girl;
printf("请输入父亲,母亲身高\n");
scanf("%f %f",&faHeight&moHeight);
boy=(faHeight+moHeight)0.54;
girl=(faHeight0.923+moHeight)/2;
printf("若男性喜爱体育锻炼,请输入1,否则输入0\n");
scanf("%d",&m);
if(1)
boy=boy0.02;
printf("若男性有良好的卫生饮食习惯,请输入1,否则输入0\n");
scanf("%d",&n);
if(1)
boy=boy0.015;
printf("若女性喜爱体育锻炼,请输入1,否则输入0\n");
scanf("%d",&p);
if(1)
girl=girl0.02;
printf("若女性有良好的卫生饮食习惯,请输入1,否则输入0\n");
scanf("%d",&q);
if(1)
girl=girl0.015;
printf("据身高预测公式,男性成人时身高为%5.1fcm\n",boy);
printf("据身高预测公式,女性成人时身高为%5.1fcm\n",girl);
return 0;
}
但是运行说我这里错了,不知道哪错了