#include<stdio.h> /*包含头文件*/
#define HEG 0.54 /*定义常量*/
float height(float father, float mother); /*函数声明*/
int main() /*主函数main*/
{
float father;
float mother;
float son;
printf("请输入父亲的身高:\n");
scanf("%f",&father);
printf("请输入母亲身高:\n");
scanf("%f",&mother);
son=height(father,mother);
printf("预测儿子身高:");
printf("%.2f\n,son");
return 0;
}
float height(float father,float mother)
{
float son =(father+mother)*HEG;
return son;
}
哪里错了