#include<math.h>
main()
{
char sex;
char sports;
char diet;
float myHeight;
float faHeight;
float 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 have a good habit of diet(Y/N)?");
scanf("%c",&diet);
printf("do you like sports(Y/N)?");
scanf("%c",&sports);
if(sex ==`M` || sex ==`m`)
myheight = (faHeight + moHeight)*0.54;
else
myheight = (faHeight *0.923 +moHeight) / 2.0;
if(sports == `y` || sports ==`Y`)
myHeight =myHeight * (1 + 0.02);
if(diet ==`Y` || diert ==`y`)
myHeight = myHeight * (1 + 0.015);
printf("your future height will be %f(cm)\n",myHeight);
}