package day4
;
public class xunhuan2
{
public static void main(String
[] args
)
{
java
.util
.Scanner input
= new java.util.Scanner(System
.in
);
System
.out
.println("月:");
int month
= input
.nextInt();
System
.out
.println("日:");
int day
= input
.nextInt();
if(month
==1 && day
>=20 || month
==2 && day
<=18)
System
.out
.println("水瓶座");
else if(month
==2 && day
>=19 || month
==3 && day
<=20)
System
.out
.println("双鱼座");
else if(month
==3 && day
>=21 || month
==4 && day
<=19)
System
.out
.println("白羊座");
else if(month
==4 && day
>=20 || month
==5 && day
<=20)
System
.out
.println("金牛座");
else if(month
==5 && day
>=21 || month
==6 && day
<=21)
System
.out
.println("双子座");
else if(month
==6 && day
>=22 || month
==7 && day
<=22)
System
.out
.println("巨蟹座");
else if(month
==7 && day
>=23 || month
==8 && day
<=22)
System
.out
.println("狮子座");
else if(month
==8 && day
>=23 || month
==9 && day
<=22)
System
.out
.println("处女座");
else if(month
==9 && day
>=23 || month
==10 && day
<=23)
System
.out
.println("天秤座");
else if(month
==10 && day
>=24 || month
==11 && day
<=22)
System
.out
.println("天蝎座");
else if(month
==11 && day
>=23 || month
==12 && day
<=21)
System
.out
.println("射手座");
else if(month
==12 && day
>=22 || month
==1 && day
<=19)
System
.out
.println("摩羯座");
}
}
转载请注明原文地址:https://tech.qufami.com/read-5476.html