我想问这个程序有什么问题?
#include<stdio.h>main()
{
float faHeight, moHeight, Height;
char sex, sport, diet;
printf("your sex(M or F)");
scanf(" %c",&sex);
if (sex == 'M')
{
printf("please enter your father's height\n");
scanf("%f",faHeight);
printf("please enter your mother's height\n");
scanf("%f",moHeight);
Height = (faHeight+ moHeight) * 54/100;
}
else if (sex == 'F')
{
printf("please enter your father's height\n");
scanf("%f",&faHeight);
printf("please enter your mother's heitht\n");
scanf("%f",&moHeight);
Height = (faHeight * 923/100 *moHeight)/2;
}
printf("Do you like sports?(Y or N))\n");
scanf("%c",&sport);
scanf("%c",&sport);
if (sport == 'Y')
{
Height = Height*102/100;
}
else if (sport =='N')
{
Height = Height;
}
printf("Do you have good diet?(Y or N)");
scanf("%c",&diet);
scanf("%c",&diet);
if (diet == 'Y')
{
Height = Height*15/1000;
}
else if (diet == 'N')
{
Height = Height;
}
printf("your height=%f",Height);
}