为什么结果为0???太奇怪了改了很多遍还是0
#include <stdio.h>int main()
{
char sex;
char sports;
char diet;
float myheight;
float faheight;
float moheight;
printf("你是男孩(b)还是女孩(g)?");
scanf("%ls",&sex);
printf("平常是否喜欢运动(y/n)?");
scanf("%ls",&sports);
printf("是否有良好的饮食习惯(y/n)?");
scanf("%ls",&diet);
printf("输入你妈妈的身高:");
scanf("%f",&moheight);
printf("输入你爸爸的身高:");
scanf("%f",&faheight);
if(sex=='b'||sex=='B');
{
myheight=((faheight+moheight)*0.54);
}
if(sex=='g'||sex=='G');
{
myheight=((faheight*0.923+moheight)/2);
}
if(diet=='y'||diet=='Y');
{
myheight=myheight*(1+0.015);
}
if(sports=='y'||sports=='Y');
{
myheight=myheight*(1+0.02);
}
printf("Your future height will be %.2f(cm)\n",myheight);
return 0;
}