var a=prompt("请输入年份");
a=parseInt(a);
if(isNaN(a)){
alert("您输入的不是数字")
}else{
b=prompt("请输入月份");
b=parseInt(b);
if(isNaN(b)){
alert("您输入的不是数字")
}else{
c=prompt("请输入日子")
c=parseInt(c);
if(isNaN(c)){
alert("您输入的不是数字")
}
}
}
if(b==3&&c>20&&c<32){
alert("白羊座")
}else {if(b==4&&c>0&&c<20){
alert("白羊座")
}else {if(b==4&&c>19&&c<31){
alert("金牛座")
}else {if(b==5&&c>0&&c<21){
alert("金牛座")
}else {if(b==5&&c>20&&c<32){
alert("双子座")
}else {if(b==6&&c>0&&c<22){
alert("双子座")
}else {if(b==6&&c>21&&c<30){
alert("巨蟹座")
}else {if(b==7&&c>0&&c<23){
alert("巨蟹座")
}else {if(b==7&&c>22&&c<32){
alert("狮子座")
}else {if(b==8&&c>0&&c<23){
alert("狮子座")
}else {if(b==8&&c>22&&c<32){
alert("处女座")
}else {if(b==9&&c>0&&c<23){
alert("处女座")
}else {if(b==9&&c>22&&c<31){
alert("天秤座")
}else {if(b==10&&c>0&&c<24){
alert("天秤座")
}else {if(b==10&&c>23&&c<32){
alert("天蝎座")
}else {if(b==11&&c>0&&c<23){
alert("天蝎座")
}else {if(b==11&&c>22&&c<31){
alert("射手座")
}else {if(b==12&&c>0&&c<22){
alert("射手座")
}else {if(b==12&&c>21&&c<32){
alert("摩羯座")
}else {if(b==1&&c>0&&c<20){
alert("摩羯座")
}else {if(b==1&&c>19&&c<32){
alert("水瓶座")
}else {if(b==2&&c>0&&c<19){
alert("水瓶座")
}else {if(b==2&&c>19&&c<30){
alert("双鱼座")
}else {if(b==3&&c>0&&c<21){
alert("双鱼座")
}
}}}}}}}}}}}}}}}}}}}}}}}