[求助]查询(生肖)


main()
{
long int g=1997;
float a,b,x;
scanf("%f",&a);
float x=(g-a)%12
if ((x==1)||(x==-11)){b="shu";}
else {
if (x==0){b="niu";}
else {
if ((x == 11) || (x == -1)) {b="hu";}
else {
if ((x == 10) || (x == -2)) {b="tu";}
else {
if ((x == 9) || (x == -3)) {b="long";}
else {
if ((x == 8) || (x == -4)) {b="che";}
else {
if ((x == 7) || (x == -5)) {b="ma";}
else {
if ((x == 6) || (x == -6)) {b="yang";}
else {
if ((x == 5) || (x == -7)) {b="kou";}
else {
if ((x == 4) || (x == -8)) {b="ji";}
else {
if ((x == 3) || (x == -9)) {b="gou";}
else {
if ((x == 2) || (x == -10)) {b="zhu";}
}
}
}
}
}
}
}
}
}
}
}
printf("shengxiao=%f\n",b);
}
这个不知道哪里出现了问题的程序
看了很多遍了
就是找不出哪里错。。。
各位帮帮忙改下
