4 like 0 dislike
554 views

Write a program to find your zodiac sign. The program will take your date of birth as an input (YYYY/MM/DD) and output your zodiac. You can find information about zodiac here.

Example:

Input:

Input your birthday (YYYY/MM/DD):
1999/6/2

Output:

Your zodiac is Gemini

 

Input:

Input your birthday (YYYY/MM/DD):
1996/10/3

Output

Your zodiac is Libra
[Normal] Coding (C) - asked in Questions Bank by (5.9k points)
ID: 30262 - Available when: Unlimited - Due to: Unlimited
| 554 views

1 Answer

0 like 0 dislike
Hidden content!
***** ** ** * * *
*** * ** * ****


int *** argc, char * {
** * * ** int year, * * date;
** * *** ** *** * * your * ** ** **
** * * **
** * ** *** ** * *** * * * * * * *** * * ** * * **
* * ** * ***** == 1 * **** date * * ** 19) || (month == 2 ** * * * date *** 19))
** * ** ** * **** * * * is * ***
* * **** *** * *****
* ** * * ** else *** == 2 ** * ** date * 17) || (month == 3 * * ** *** ** date * 21))
* * * ** * **** ** * *** ** zodiac is * * * *
**** * * ** * *** * *
* * ** ** else * == 3 * * ** ** date * * * 19) || (month == 4 ** * ** * date * ** 21))
* **** **** * * **** * **** *** * zodiac is ** **
*** * *** * ** *
* ** ** **** * * else ** ** == 4 * date ** ** 19) || (month == 5 * * ** * date * * 21))
*** *** ** * * **** * * * * * * zodiac is * * *** *
* * * **** * ** ****
* ** * * *** **** ** * **** == 5 * * * date ** *** 19) || (month == 6 * * ***** ** * date 22))
* ** ** *** ** zodiac is ** ** * *
* * ****** * * *** * *
*** *** * * * * * * * == 6 * * * ** date **** 20) || *** == 7 * * date 23))
*** *** ** *** * * **** ***** * * * *** * *** is * * ****
* ** *** ** * ***
* *** *** * * * * * ** == 7 * * * * date * * 21) || * ** == 8 * * * date * 23 ))
* * * * * *** *** * ** ***** zodiac is ** *****
** * ** ****** ***** ** **
* * ** * * **** *** ** * *** == 8 **** *** ** date *** * 21) || ** * == 9 * ** * **** * date ** * 24))
**** * * ** *** ** ** * *** is ******
** * ** * ** ** ** *
** ** *** * * ** * *** * ** == 9 * *** ** * date * ** 22) || (month == 10 * ** ******** date ** 23))
* * * * ** * * * *** * * zodiac is *** ** **
* *** * *** * *** *
* * * * ****** * * * ** * * * ** == 10 *********** date * * 22) || (month == 11 ******** date **** 23))
** **** *** **** ** ** ** * ** zodiac is * * ****
* *** * *** * *** ** * *
* ** *** ** * * == 11 * ** *** date * * 21) || (month == 12 * ** * ** date ** 22))
* * ***** ** ***** * ** ** * is *** * * ** ***
* * ** * ** *
** ** * *** *** * ** * ***** == 12 * ** * * date * * 21) || ** == 1 * ** ** date 20))
* * * * **** * ** * ** ** is *** * *******
* ** * * ***** **** *
* * * * ****** * * * * ** month or date is ** * **
** * * **
** * * *
}
answered by (220 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
i don't know what is case? what did i wrong?
0 0
i don't know what is case? what did i wrong?
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.100.63
©2016-2025

Related questions

4 like 0 dislike
0 answers
[Normal] Coding (C) - asked Nov 3, 2017 in Questions Bank by nat236919 (5.9k points)
ID: 30264 - Available when: Unlimited - Due to: Unlimited
| 561 views
4 like 0 dislike
1 answer
[Normal] Coding (C) - asked Nov 3, 2017 in Questions Bank by nat236919 (5.9k points)
ID: 30261 - Available when: Unlimited - Due to: Unlimited
| 525 views
12,783 questions
183,442 answers
172,219 comments
4,824 users