#include
#include
int main()
{
char sex,sports,diet;
float myHeight,faHeight,moHeight;
printf("Are you a boy(M) or a girl(F)?");
scanf(" %c",&sex);
printf("Please input your father's height(cm):");
scanf("%f",&faHeight);
printf("Please input your mother's height(cm):");
scanf("%f",&moHeight);
printf("Do you like sports(Y/N)?");
scanf(" %c",&sports);
printf("Do you have a good habit of diet(Y/N)?");
scanf(" %c",&diet);
if(sex=='M')
myHeight=(faHeight+moHeight)*0.54;
else
myHeight=(faHeight*0.923+moHeight)/2.0;
if(sports=='Y')
myHeight*=(1+0.02);
if(diet=='Y')
myHeight*=(1+0.015);
printf("Your future height will be %.0f(cm)\n",myHeight);
}