怎么修改呢
#include<stdio.h>void main()
{
float faHeight,moHeight,T;
char sex,sports,diet;
printf("父亲身高:");
scanf("%f",&faHeight);
printf("母亲身高:");
scanf("%f",&moHeight);
printf("性别(M/F):");
scanf("%*c%c",&sex);
printf("是否喜欢运动(Y/N):");
scanf("%*c%c",&sports);
printf("饮食是否良好(Y/N):");
scanf("%*c%c",&diet);
if(sex=='M')
{if(sports=='Y')
T=(faHeight+moHeight)*0.54*1.02;
{if(diet=='Y')
T=(faHeight+moHeight)*0.54*1.02*1.015;
else
T=(faHeight+moHeight)*0.54*1.02;}
}else
{if(diet=='Y')
T=(faHeight+moHeight)*0.54*1.015;
else
T=(faHeight+moHeight)*0.54;}
else
{if(sports=='Y')
T=(faHeight*0.923+moHeight)/2*1.02;
{if(diet=='Y')
T=(faHeight*0.923+moHeight)/2*1.02*1.015;
else
T=(faHeight*0.923+moHeight)/2*1.02;}
else}
{if(diet=='Y')
T=(faHeight*0.923+moHeight)/2*1.015;
else
T=(faHeight*0.923+moHeight)/2;}
}