Browse Source

Tells user about their horoscope sign description

main
fdlt3859 2 years ago
parent
commit
d19db7ac57
  1. 10
      src/main/quizproject.c

10
src/main/quizproject.c

@ -2209,7 +2209,17 @@ void v_play_rockpapersciss(){
void v_horoscope(int day, int month){
if ((month == 3 && day >= 21) || (month == 4 && day <= 19)) {
char horo;
printf("Your horoscope is Aries.\n");
printf("Do you want to know more about Aries personalities?\n");
printf("Your Answer(Y/N): ");
scanf(" %c", &horo);
horo = toupper(horo);
if (horo == 'Y'){
printf("Like their fellow fire signs, Leo and Sagittarius, \nAries is a passionate, motivated, and confident leader who builds community with their cheerful disposition \nand relentless determination. \nUncomplicated and direct in their approach, they often get frustrated by exhaustive details and unnecessary nuances.\n");
}else{
printf("Okay no worries! But you missed the fun!");
}
} else if ((month == 4 && day >= 20) || (month == 5 && day <= 20)) {
printf("Your horoscope is Taurus.\n");
} else if ((month == 5 && day >= 21) || (month == 6 && day <= 20)) {

Loading…
Cancel
Save