From d19db7ac571b7bdaaf39636b33c8c52663075f99 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Tue, 7 Feb 2023 00:10:41 +0000 Subject: [PATCH] Tells user about their horoscope sign description --- src/main/quizproject.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index d91cc20..902b104 100644 --- a/src/main/quizproject.c +++ b/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)) {