Fortune Telling Collection - Horoscope - Enter the month and date to give the corresponding constellation.
Enter the month and date to give the corresponding constellation.
void main()
{
int a,b,c;
Scanf("%d%d ",&i, & b);
c = a * 100+b;
Switch (c)
{
case(c & gt; = 12 1 & amp; & ampc & lt=220):printf("%a month %b day is Aquarius \n ",a, b);
case(c & gt; =22 1。 & ampc & lt=320):printf("%d month %d day is Pisces \n ",a, b);
case(c & gt; =32 1。 & ampc & lt=420):printf("%d month %d day is Aries \n ",a, b);
case(c & gt; =42 1。 & ampc & lt=520):printf("%d month %d day is Taurus \n ",a, b);
case(c & gt; = 52 1 & amp; & ampc & lt=620):printf("%d month %d day is Gemini \n ",a, b);
case(c & gt; = 62 1 & amp; & ampc & lt=722):printf("%d month %d day is cancer \n ",a, b);
case(c & gt; = 723&= 723 & amp& ampc & lt= 822): printf ("Leo is on %d day in% d month \n", a, b);
case(c & gt; = 823&= 823 & amp& ampc & lt= 922): printf ("Virgo is on %d day in% d month \n", a, b);
case(c & gt; = 923 & AMPC & lt =1022): printf ("%d month% d day is Libra \n", a, b);
case(c & gt; = 1023。 & ampc & lt =1122): printf ("%d month% d day is Scorpio \n", a, b);
case(c & gt; = 1023。 & ampc & lt =1222): printf ("%d month% d day is Sagittarius \n", a, b);
case(c & gt; = 1223。 & ampc & lt =1231): printf ("%d month% d day is Capricorn \n", a, b);
case(c & gt; = 10 1 & amp; & ampc & lt =120): printf ("%d month% d day is Pisces \n", a, b);
}
}
It's simple.
- Previous article:Wang Fu Yoshiko is a constellation girl cherished by her husband.
- Next article:Mu Jun Twelve Constellations _ Twelve Constellations Wood
- Related articles
- What constellation is 165438+ 10/2?
- I don't care about you on the surface, but I think about you all the time. What are the constellations that love can't hide?
- I like to interrupt other people's horoscopes.
- Do you know which three constellations like to change jobs frequently, and their hearts are erratic and unstable?
- What constellations are valued by others for ten times the return?
- Which meteor shower broke out the most times?
- Investigation on the acquisition conditions of personalized clothing for westward journey mobile games
- Legends of the Zodiac and the Zodiac (both in China and the West)
- Which of the twelve constellations attracts girls the most?
- Which constellation likes to ask others and listen to others praise themselves?