#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int year, month, date;
printf("Input your birthday (YYYY/MM/DD): ");
scanf("%d%d%d", &year, &month, &date);
if((month == 1 && date > 19) || (month == 2 && date < 19))
printf("Your zodiac is Aquarius");
else if((month == 2 && date > 17) || (month == 3 && date < 21))
printf("Your zodiac is Pisces");
else if((month == 3 && date > 19) || (month == 4 && date < 21))
printf("Your zodiac is Aries");
else if((month == 4 && date > 19) || (month == 5 && date < 21))
printf("Your zodiac is Taurus");
else if((month == 5 && date > 19) || (month == 6 && date < 22))
printf("Your zodiac is Gemini");
else if((month == 6 && date > 20) || (month == 7 && date < 23))
printf("Your zodiac is Cancer");
else if((month == 7 && date > 21) || (month == 8 && date < 23 ))
printf("Your zodiac is Ieo");
else if((month == 8 && date > 21) || (month == 9 && date < 24))
printf("Your zodiac is Virgo");
else if((month == 9 && date > 22) || (month == 10 && date < 23))
printf("Your zodiac is Libra");
else if((month == 10 && date > 22) || (month == 11 && date < 23))
printf("Your zodiac is Scorpio");
else if((month == 11 && date > 21) || (month == 12 && date < 22))
printf("Your zodiac is Sagittarius");
else if((month == 12 && date > 21) || (month == 1 && date > 20))
printf("Your zodiac is Capricorn");
else
printf("One of your (YYYY/MM/DD) is wrong!");
}
Show more...