1 like 0 dislike
8k 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
[Exercise] Coding (C) - asked in Chapter 3: Branching, Looping and Functions by (5.2k points)
ID: 28184 - Available when: Unlimited - Due to: Unlimited

edited by | 8k views
0 0
should I write all zodiac?

23 Answers

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


int ** * argc, char *** * {
*** ** * * **** year, month, date;
** * * ** * * * * ** * * *** * * * ** your * ** * * ****
* * * ** * * ** * *****
* *** * * * * ** ** ** * * * ** ** ** * * * * *
* * * **** *** ** ** * *** == 1 * * * * date * ** 19) || (month == 2 **** * * date * *** 19))
** **** * * * ** **** ** * zodiac is * *** *** *
* * * *** * ** * * * **
*** ** *** *** ** ** * * * * == 2 ** ** date * ** 17) || (month == 3 ** ** ** date * * 21))
* *** * * ****** *** *** * *** * ** zodiac is * ***
** ** ** ***** * * **
* * ** **** ** * * * ** * * * == 3 ** ** date ** * 19) || (month == 4 * ** ****** date < 21))
* * ** * * ** **** * * * zodiac is ** ** **
**** * ** * **** *** **
** ** * * * * * **** * * * * ** ** * == 4 * * *** date *** 19) || (month == 5 *** ** * * date * ** 21))
* * * ** * * * * * * * * * ** * ** zodiac is * * ****
** **** *** * **** *** *
* * *** * ****** * * * * == 5 *** * * **** date *** 19) || (month == 6 * * *** * date ** 22))
* * ****** ** * ** *** * * ** zodiac is * * * * *
*** * ** **** * *****
** * ** * ** ** *** *** ** ** == 6 *** * date * 20) || (month == 7 * * * * * date * 23))
**** * * * ** * ** * * ** ** ** zodiac is **** *
* ** *** * ***
** ** * ** * * * * ** * ** == 7 ** * ** * date * * * 21) || (month == 8 * * * * ** date * 23 ))
** * * * * ** * * ** *** zodiac is **
** * * * * *** * ** *****
*** * ** ******* ** ********* * * * == 8 * * * *** date ** * 21) || (month == 9 * * *** ** date * * 24))
* ** * * ** ** * * * * zodiac 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))
* *** ***** * ** *** * *** * ** zodiac is ***** *** *
* * * *** ** ****
*** * * * *** *** * * * == 12 * * ** date *** 21) || (month == 1 *** ** * ** date * * 20))
****** * *** *** ***** ** * * * zodiac is ** ** ** *
** * ** * * **** ** ** * **
******* ** ***** * **** * * ** * *** * ** *****



* *** * return 0;
}
100/100 answered by (153 points)
edited by
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
#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!");
   
   
}
1 0
prog.c: In function 'main':
prog.c:48:2: error: expected declaration or statement at end of input
  return 0;
  ^~~~~~
0 0
prog.c: In function 'main':
prog.c:46:5: error: expected declaration or statement at end of input
     printf("One of your (YYYY/MM/DD) is wrong!");
     ^~~~~~
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
** * ** * * * * *
*** * **

/* run * ** **** ** the ** * or add * * own * ** *** * ** * * ** or * * */

int * *** * * char *** ** {
*** * * int n;
* **** * * *** * * ** **** the * ** ** ***
* * * * ** ***
** ***** * * * **** * * * * ***** **
* * * * **
** * *** * *
* * * * ** ** if( n = *
* * ** ** * ** * * *** *** is * ***

** ** * * * * 0;
}
answered by (153 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
** *** *** * *
***** * * **** * * *

/* run this ** using the ** pauser or add your own getch, ** * * * ****** or input loop */

int ** * argc, char * * * {
*** * * * *
* * ****** * *** your * * * * *** * *
** ** ***** * int y, m, d;
* ***** * * * * * * ***** * * **** ** * *** * *
**** * ****
* *** **
** * if(m == 1){
* ** * ** * *** * * if(d ** 1 * **** **** * d ** 19){
** * * ** * *** * ** * **** * * ** ** ** * zodiac is **** ** * *
** * * * ** * * *** ****** }else if(d **** 20 ** ** * d * 31){
* ** ** * * * * ** *** * ** * * * ** zodiac is * * * *** **
** ** *** }else
** ** * * ** ** * *** *** * * *
* ** * * ***** }
** ***
*** * * * ** if(m == 2){
* * ** * ** *** ** *** if(d * * 1 * ** d * ** 18){
* * * **** ** ** * * * * ** * * ** ** * ** zodiac is ** ** **
* * * * * * * * }else if(d ** 19 * * ** * d *** 30){
** ** ** * ** * ** ** * * zodiac is * ** **
* * **** * }else
** * * *** ** *
** * ** * ** }
* ** * *** **
**** **** ** if(m == 3){
*** ** *** **** * * ** if(d ** 1 * * * ** d **** * 20){
* *** *** * ** * *** * * * ** * * * **** * zodiac is ** * ** *
* * *** * *** * ** }else if(d * * 21 ** ***** d * 31){
* ** * *** * ** * *** * * * is ****** *
** * *** }else
* * * * *** ** **** ** * **** **
* * * * * * * }
* ** ******* *
* ******* if(m == 4){
* * * * * ** ** if(d * ** 1 * *** ***** d *** * 19){
* * * * * ** ** * * **** ** ** ** *** is **
* * ** * * * *** * * }else if(d ** 20 * * ** * d * 30){
* ** *** * * * * ***** *** ** * is * * * *
*** *** }else
*** * ** * ** * ******* * ***
** * * * *** * }
** **** ** * * * *
***** **** if(m == 5){
* ** * *** * * * * * *** if(d **** 1 *** ** * d ** ** 19){
* ** ** * * * * ** * ** ** * * * *** * ** * * is ** **
* ** * * * * ** * ** ** }else if(d ** * 20 ***** ** ** d * ****** 31){
** * * * * **** *** * *** **** *** ** zodiac is * ** * *
* * *** }else
*** * ** ** * ** ** ** *
*** * ** * * }
* *
* *** *** * if(m == 6){
**** * *** ** * *** if(d ** * 1 * * *** d ** * * 21){
* * * * * * ** * * * ** ** * * ** * * ***** **** zodiac is * * ** ****
** * ** * * ** ** *** ** * }else if(d ** * 22 * * * * * d 30){
* * * * ** * * *** ** * * ** * *** * * zodiac is ** * *
* *** * ** ** }else
* * * * * ** * * ** * **** * *
** * ** * * }
* * * *
*** * * ** if(m == 7){
* * * ** * ** * *** * * * if(d * ** 1 ** * * * d *** *** 22){
*** *** ** * * ** * * * * *** ** ** ** * * * ** zodiac is ** * * **** **
* *** * ** *** ***** * }else if(d ** * 23 ** ** * ** d ** * * 31){
* *** * ** * * * ** * *** * *** zodiac is * * ***
**** ** *** * }else
*** * * ***** *** * ** * **
******* * * * *** }
* *** * * * *
** * ** ** * if(m == 8){
*** * * * * * ** * if(d * ** 1 ** ** **** d *** ** 22){
** * ** * ** * * ** ** * **** * ** * * ** is * ****
*** * ** * *** }else if(d *** 23 **** * * d * 31){
** * ** ** * *** ** ** * ** ** zodiac is *** *
* * **** }else
******* * ** **** ** **** **
* *** * *** * }
** * * **** *
* * * * ** if(m == 9){
*** *** ***** ** **** * ** * if(d * * ** 1 ** * * * d * 22){
** * * * * ** * ** * * *** ** *** * * *** **** * * zodiac is ** * *
** * * * * * * * }else if(d ** *** 23 * *** * * d * ** 30){
* ** *** * * ** *** * * **** ** ** * zodiac is ** * * *
* * ** * ** }else
** * * * * ** *** *** ** **
** * * ** ** * }
*** * * ***
* * ***** if(m == 10){
** * * * * * **** if(d * 1 ** *** * d *** 22){
** * ** * * * * ** ** * * * * ** zodiac is * *** * *
* ** * *** *** * *** }else if(d *** ** 23 * ** * d * ** ** 31){
***** **** ** ** * * ** * * * *** ** * ** * * ** is ** * **
* ** ** * * *** }else
*** **** * * ** ** ** ******** *
* **** * }
** ***
* ** ** * if(m == 11){
** * *** ** * ** * if(d **** * 1 * * * ** *** d ** 21){
** * *** *** ** ** * * ** * * * * zodiac is **** * * **
** * * * * *** * * *** }else if(d **** 22 ** * * ** ** d ** * 30){
**** * * * * ** *** * * *** zodiac is * ** * * *
*** ** ** *** }else
** * * ** ** * ***** ** ***
** * * ** }
** * * * ***
* ** *** if(m == 12){
* * ** * ** * ** * if(d * ** 1 ** * d **** 21){
* * * ** ** * **** * *** * **** * *** * zodiac is * *** ****
* ** ** * ** ** ** * * }else if(d ** * * 22 *** * * * d ** 31){
** * ** * ** * ** * * * * ** * * zodiac is * ** ** *** *
**** * * * * }else
* * ** * *** * * *** * *
** ** * }
* ** *** return 0;
}
50/100 answered by (221 points)
edited by
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
Why? TAT
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
* * ** ***** * * ***
* ** * ** *****


int ** * argc, char ** {
** * ****** ** *** * *** year, month, date;
* ** ** ** ** * ******* * **** ** * your *** ** ** * * ****
** * * * * * *** ** *
* * * *** * * * ** ** * ** * * ***** *** *** * ** **** * * * ** *
*** * ***** ** * * * * * * == 1 ** *** *** date * 19) || (month == 2 ** ***** * * date ** * 19))
* * ** * * * * *** * * zodiac is ** *
* **** * * ** ** ***** **
******** *** ** ** ** * ** == 2 *** ** date 17) || (month == 3 * **** *** * date ** * 21))
**** * * ** * * * ******** ** * * zodiac is ****** ***
* *** * *** * * * *** **
* *** *** ** * * * ** * * == 3 *** * * * date ** 19) || (month == 4 ** * * date ** * 21))
* ** * ** * ***** *** ** * *** ** * zodiac is **** * *
* *** * * * * * * ***
* * *** ** **** * * * **** * * ** * == 4 ** ** ***** date * 19) || (month == 5 * * * * * date < 21))
** ** *** * ** * * *** **** * * **** * ** zodiac is *** * **
* * * ****** * * *** **
**** *** * * * * * *** * * == 5 * *** * * date > 19) || (month == 6 * **** * ** date ** *** 22))
** *** * * * ** ** ** * ** *** zodiac is * ** *
** ** * ** ******** ** **
** * * * ** * ** ** ** * ***** * == 6 * * * * date ** ** 20) || (month == 7 ** ** date ** * 23))
* *** * ** ***** * * zodiac is **** *
* * * * *** ** *
** ** ** ***** *** ** ** ** == 7 ** * * * date *** 21) || (month == 8 * * *** * date ** 23 ))
* *** * ** *** ** * * ***** ** ** zodiac is * * * ***
* * * **** ** ** **
* * * * * * ** ** * * ** * * * == 8 * * * date 21) || (month == 9 ** *** * date * *** * 24))
* * * * * * * *** * * * * zodiac 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))
** *** *** **** * * * ***** zodiac is **** * ** * ***
* * * * *******
* *** * *** * * * * ***** ** == 12 * *** ** date * * 21) || (month == 1 *** *** * date * ** * 20))
** **** ** *** * * * ** * zodiac is * * **** * ***
** *** *** * ** ** * *
* ** *** * * * ** *** ** ** ** * * ** *

}
100/100 answered by (246 points)
edited by
0 0
prog.c:1:1: error: unknown type name 'Input'
 Input your birthday (YYYY/MM/DD):
 ^~~~~
prog.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'birthday'
 Input your birthday (YYYY/MM/DD):
            ^~~~~~~~
0 0
prog.c:1:1: error: unknown type name 'Input'
 Input your birthday (2000/12/04):
 ^~~~~
prog.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'birthday'
 Input your birthday (2000/12/04):
            ^~~~~~~~
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
******* * * * ***

int main() {
   
* **** ** * * * * ** YYYY,MM,DD;
*** * *** * * * * * ** * * **** your birthday * ** * ** *
** *** *** * * ** ** ** * ** *** ****** ** **** * &YYYY, &MM, &DD);
* * ** *****
* ** * ** *** * * * * ** **** ** * DD>=21) **** * *** ** ***** *
** **** * ** * ** **** if(MM==4 * ***** *** ** *** **** ** zodiac is * * **
** * * ** * * *** ****** if(MM==4 * * * * *** * * * zodiac is **** * ***
** *** ** * * ** * * * if(MM==5 ** ** * * ** ** * ** * **** zodiac is * ** * ***
* ** * * ** * * * if(MM==5 * * ** ** * ***** * ** * ** *** zodiac is * ***
* *** *** *** ********** if(MM==6 * *** *** ** * * *** *** * zodiac is ** * **
* ** ** ****** ****** ****** if(MM==6 * ** * * ** DD>=22) * * ***** * * zodiac is * * *
** * *** * * * * if(MM==7 * ** ** *** * *** * * *** ****** ** zodiac is * ***** *
* ** **** * ** ** * if(MM==7 ** *** **** DD>=23) * ***** zodiac is **** *
*** ** * *** * * * if(MM==8 ** **** * * * * ** *** zodiac is * ** *
* * ** ** * ***** ** * if(MM==8 * * * * ** ** *** * zodiac is * ** * * *
* ***** * ** * ** *** if(MM==9 ***** * * DD<=23) ** ** ** * * zodiac is ** * *
* ** ** * * * * *** * *** * if(MM==9 * * * ** *** * * * **** * zodiac is * * **
* ** ** * * ***** * * *** if(MM==10 * * * * * *** *** ** * * ** zodiac is ** * * **
******* **** *** * * if(MM==10 ** * * * **** ***** ** zodiac is * * * ***
*** * ** * ** * ** ** * if(MM==11 * * *** * ****** * * * **** ** zodiac is * ** * **
* * ** **** ** ** * ** if(MM==11 *** * * * ** *** * * ** ** ** ** zodiac is **** **** *
*** ****** * * *** * * * if(MM==12 * *** ** *** * ** ** ** * *** zodiac is ** * ****
** * ** * * ******** * * if(MM==12 * ** ** ** * ** ****** ** ** zodiac is * *** *
** * * *** * * * *** * if(MM==1 ** ** * ***** * * ** ** * *** zodiac is * * * *
**** *** * ** * ***** if(MM==1 ** ** DD>=20) *** * * ** * zodiac is *
* * ** * * ** ** * ** if(MM==2 *** * * * * * * *** *** ** zodiac is * ** * ****
** ** * *** ** **** * if(MM==2 ***** *** ** ** * ** ** * * zodiac is *** ** *
* * * * ** ****** *** if(MM==3 ** *** ** ** ** * **** * zodiac is * ** ** **

* * ** * *** * *** 0;
}
100/100 answered by (273 points)
0 0
Case 0: Correct output
Case 1: Correct output
Case 2: Correct output
Case 3: Correct output
Case 4: Correct output
0 like 0 dislike
Hidden content!
** * *** * *** *
*** * * ** ** * ***

/* run * * ** * the * or add your own ** * ** ** * ** or ** * loop */

** * ** ** *** {
* ** * * int *
** * **
** *** * ** * *** ** ** * ** date of * *** * * ** * **
* ** *** ** * * * * * ***** * * ** **** *
* * * * *
**** * * * if *** == 1) **** * *** **** * * ((mm == 2) **** * *** * * *** **
** * ** * **** **** are an ** *
* * **** * * * * * **** * ** == 2) ***** ** *** * ** **** * ((mm == 3) * ** *** * ** *
* ***** * ** ** *** * * * are a * ***** ***
* * ** ** ** if * * == 3) * * * * * * * * *** * ** ((mm == 4) **** **** ** ***
** **** *** ** * ** * are an ****
***** * * *** if * == 4) ** * * * * * *** ** * == 5) ** * ***** * ** ** *** *
* * * ** ** * *** are a * **
**** ** * ** if *** == 5) * ** * * ** * ((mm == 6) * * * * *** ** ** **
* *** ** * * ** * * ** ** are a * * * **
***** **** * if * * == 6) * * * * * ** * * ** ** ((mm == 7) * * * ** ** ** ** *
* * * ** ** **** **** are a * * * * **
* * * *** if * == 7) ** ** * ** * ** * * * ((mm == 8) * ** ** * * * ** **
* * * ** * **** ** * * are a * * ****
*** ** * if ** * == 8) *** ** *** * ** ** ((mm == 9) ***** *** * *** * * *
* * ** ** * *** *** *** are a * * *** *
* * ** * if *** == 9) * **** * * * ** ** == 10) * * * ** * *** * * *
** ** * ** * * are a * *
** **** ** ** if ** == 10) ** * *** * ** ** * * * * * ((mm == 11) ** * * * *** * *
* * * ***** * * ** * are a * * *
* * * * ** * if * == 11) ** * * * * * ** ** ((mm == 12) ** * ** ** * * ***
**** * * * * * **** *** are a ** * * * * **
*** * * ** if * * == 12) *** **** *** ** * * ** ** == 1) * * * * ** *
* **** * ** ** * **** ** * are a * ******
* * ** *** * * 0;
}
100/100 answered by (252 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>
#include ***** * * * **

int main(int argc, char *argv[]) {
** * * **** * * * ** * y, m, d;
** *** *** ******* *
** * *** * ** * ** * ** ** *** **** your birthday ****** ** * *
*** * * ** ** * ***
* **** * ***** ** * * * * * * &y, &m, &d);
*** * ** * ****
*** * *** ** * * * ** == 1){
** *** ** * ** ***** ******* * *** * * ** * * ** < 20 && d > 0)
* ** * * ****** * *** * * *** * * * * * *** * * * ** * *** *** * zodiac sign is Capricorn");
* ** * **** * * *** * * *** ** * * * *** * * if(d >= 20 && d <= 31)
* * * ** ** ** *** ****** * * **** ** **** * **** **** ** * *** zodiac sign is Aquarius");
** * *** ** * * ** * * ** * * * ** ****
** * *** * * * **** *** ** * ** ** * * ****** *** * * * * ** * * ****** * ** ** invalid");
*** * *** * * ** **
* * * * * * **** * ** if(m == 2){
* ****** **** ** * ** * **** **** ** * * < 19 && d > 0)
* * ** * ** ** ** * * * * * * * * ** ** ** ** *** * *** * * * * *** ** zodiac sign is Aquarius");
* ** ** ** * ** * ** ** * ** *** if(d >= 19 && d <= 28)
* * ** * * * ** ** * * * ** * * * * * *** *** * * **** ** ** * ** *** * ** ** zodiac sign is Pisces");
* *** * * *** * ** * * * ** ***** *** * * *
* **** *** * * *** *** *** * * ** * * * * ** * * * ** * * * * ** ** ** invalid"); * **** ** ** **
* ** * * *** **** *
** * **** * * * * ** if(m == 3){
* * *** * **** *** **** **** *** * ******** * < 21 && d > 0)
* ****** ** * * *** *** **** * * * * ** *** * ** **** * * ** * *** * *** **** * zodiac sign is Pisces");
* **** * * * * *** * *** *** * ** ********* ** * if(d >= 21 && d <= 31)
** * ** *** * * * ** *** **** **** * *** **** ***** * * ** *** ** ** * * zodiac sign is Aries");
* ** * * *** *** * *** ** ** ** **
**** * ** * * * * *** *** * ** ** * * ***** **** * * *** * * **** * * * ** * invalid"); ** ** ******* * * **** * * * * * ** *
* * *********** * *
* * ** * ** * * ** * if(m == 4){
* ***** * * * ** * * * * ** * *** **** * ** < 20 && d > 0)
**** * ** *** ** *** * ** ** * ** * *** **** * *** **** * **** * ** * zodiac sign is Aries");
* ** * * * * * * *** *** * ** *** * if(d >= 20 && d <= 30)
** ** *** ** *** *** * ** * ** * * *** ***** * * * * *** * ** ** * **** * zodiac sign is Taurus");
* **** * * * * **** * * ** * * *** **** * *
* * * * **** **** ** * * * * * * *** *** **** ** ** * *** ** * invalid"); * ** ** * * ** ** * ** *** * * **
* * ****** * *** * ** ** **
* * ** * ** ** * ** if(m == 5){
**** * * **** * * ** ** **** ** * * * *** < 21 && d > 0)
* *** ** ** ** * ** **** * *** **** * * * ** * * *** ** * * * * * * zodiac sign is Taurus");
* ** *** ** ** * ****** ***** ******* * ******* ***** if(d >= 21 && d <= 31)
* * * * ** ******* * ** * * ** * ****** * *** ********* *** * ** zodiac sign is Gemini");
** ** * * ** **** ** ** ** ** ** ** * * * ** *
*** * ** **** * * ** ** ** * ** ** ** **** * ** ** **** * *** * * * * invalid"); *** *** * *** *** * ** ***** **** ** *
**** * * *** **** *
* *** * * *** *** if(m == 6){
** ** * **** * ** * * **** * * *** * * ** < 21 && d > 0)
* ***** *** ** ** * *** * *** ** * ******* * ** ** ** *** **** * * **** * * ** zodiac sign is Gemini");
* ** * * *** ****** *** * * * * * * * * if(d >= 21 && d <= 30)
** ** ** **** * * * ** *** * * *** * ******** ** ** ** * * *** ** * * ** * zodiac sign is Cancer");
* *** **** ** ** * * *** * ****** ** * * *
* * ** * ** *** *** ** ** * * *** * * * * *** ** *** ** * ** * ** invalid"); * * ** ** * * *** *** * ** * * **** * *
* ** **** ** *******
* * * *** ** **** * * * if(m == 7){
* * * *** ***** ** * *** **** ** ** ** ** * < 23 && d > 0)
*** * * * ***** * *** * * ** * **** * * * * * * ** * * ***** ** * * zodiac sign is Cancer");
***** ***** ** * *** * *** *** ** * * * * *** if(d >= 23 && d <= 31)
** * * ** *** * * * ** ***** * ** *** * * * * * * * *** ***** **** ** * zodiac sign is Leo");
** * *** * *** ** * * * *** * * * **
*** ***** ** ** ****** ** * * * ***** * *** **** **** * ******* * *** * ** invalid"); **** * * ***** ***** * **** * *** *
** *** ***** * *** * **
** *** * * ** * *** * if(m == 8){
* * * * * * **** * *** *** * ***** ****** ** * * ** < 23 && d > 0)
* ** * *** * * * * * * *** * *** * * **** ** zodiac sign is Leo");
* * * *** * * *** **** *** * *** ** ***** * * * * if(d >= 23 && d <= 31)
** * *** ******** * * **** * * ** * * * * * * * ** ** ******* ** * ** zodiac sign is Virgo");
* ** *** * **** ** *** *** ** * * **** **** ***
** ** ** *** * * ** * ** *** * * * * ** * * * ** * *** * ** * *** *** * ** * *** invalid"); * ** * ** ***** ** * *** * **** * *
* *** * *** *** *
** ** * *** * ** *** * if(m == 9){
* *** * *** ****** * * ****** * ** * ** * ** < 23 && d > 0)
*** * **** *** * * ****** * ** *** ***** ** * *** ** ** * * *** * ** * zodiac sign is Virgo");
* * * ***** * * *** ***** * *** *** * ***** *** * * ** if(d >= 23 && d <= 30)
* * **** * ** * * ** ** ***** * ** ** * ** * *** *** ** * * * * * * ** zodiac sign is Libra");
* * * **** * ** ** * ** * ** * * * * *
* *** * ** * * *** ****** ** ** ** * * * * * ** ******* ** **** * * * invalid"); * ** * *** * ** ****** **
* * * ******* * **
* **** * **** *** * if(m == 10){
** **** * * ** * **** * *** ***** **** ** * * * < 23 && d > 0)
*** ***** * * ** ** * * ****** ** ** * * ****** *** * * ***** * * *** * * * ** * zodiac sign is Libra");
* **** * ** * * ** * *** *** * **** *** * * if(d >= 23 && d <= 31)
** ** * *** ** * * * ** ** * * ** *** * * ***** * ** ** ** * zodiac sign is Scorpio");
* * ** ** **** * *** *** * * * * ** *
******* *** *** * * *** * ** ** * ** *** * * * *** ** **** * * * invalid"); ***** ** ** **** * * *** ****** * *** ***
* * *** ****** * * *** *
* * **** ****** if(m == 11){
* * * * *** ** * ** * ** ** ** * *** ** < 22 && d > 0)
** * * * * *** ** ** * * * * * * * * *** * ** ** * * ***** ** ** * zodiac sign is Scorpio");
* ** ** * **** *** ** * **** ***** * * *** if(d >= 22 && d <= 30)
* ** * * * ** ** ****** *** ** * ***** ** * ** ******* * ** ** * * * ** * * ** zodiac sign is Sagittarius");
* * * * * * *** * ** **** * * ***** ** ** * * **
* * ******* **** * * * * ** *** ** * * * **** * * * * ** * invalid"); ** *** *** * ** *** ** ******* **
** **** * * * * *
* *** *** * *** * * * * if(m == 12){
** *** * ** * * ** ***** ** * *** * * *** *** * < 22 && d > 0)
* **** * ** *** *** * * * ****** * ***** ** * *** * * * * * * * * ****** zodiac sign is ** ** * **
* * *** ** * * * * ** ****** ** ** * * *** * * if(d >= 22 && d <= 31)
* * ** ** * ** ** * * ** ** * *** * ** * * * * * ** ** ** * * * zodiac sign is Capricorn");
** * * * ** * * * * * * * * ** * * * *
* * * ****** * *** * * * ******* * ** * **** ** *** *** * ** * ** ** * invalid"); **** * **** * * * * * * * ** * * **
*** * ***** *** * ***
*** * *** * * * ** * * *
** * *** * * * * * * ** * ** * * **** * ** * * * ** * * **
* ** ** * * ** ** ***** 0;
}
100/100 answered by (290 points)
reshown by
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
1 like 0 dislike
Hidden content!
#include <stdio.h>
#include ***** * **** *

int main(int argc, char *argv[]) {
*** * **** * ** * ***** *** ** y, m, d;
***** ** * * ** *
** * * ** ** * ** * *** ** *** ** your birthday * *** * * ** *
** *** * *** ** * **
** * ***** ** ** * * * ** * * * *** &y, &m, &d);
** * * * * ** * *
* ** ** *** * * ** == 1){
* ** * ** ** ** *** * ** * ** ** *** *** * < 20 && d > 0)
** ** ** * * *** *** ******** *** * * *** * ** * ** ***** ** * * * ** ** ** * ** *** * zodiac sign is Capricorn");
** ** ** *** ** * * ** ** * * * * **** * if(d >= 20 && d <= 31)
* **** * *** * * *** ** * **** * ** ** * ***** * *** ** *** * **** **** * ** zodiac sign is Aquarius");
** * * ** ** **** * * * ** ** * *** *
** * * * ** ** ****** *** *** * * **** ** **** *** *** ** ** ** ** ***** * invalid");
* ** *** **** ** ** ***
* * * ** * * * **** if(m == 2){
* ** ***** ** * * * *** ** * ** ** * *** * * **** < 19 && d > 0)
** * ** * ** ** * *** * *** * * * ** * ****** *** **** * * * * * zodiac sign is Aquarius");
* **** * ** ***** * **** * * * * *** ** * if(d >= 19 && d <= 28)
** ** * * * * * ** * * ** ** *** * ** ** * *** *** ** ** ** ** * zodiac sign is Pisces");
****** * ******** * * * * ** * **** * **
* * * * ****** *** ** ***** * ***** *** * * ** * *** *** ** ** * * ** **** invalid"); * * **** * * * **
* * * *** * * * * * * *****
* * ***** * *** if(m == 3){
* *** ** ** ** **** ****** ** * ** ******* * * ** * < 21 && d > 0)
** * * ** * *** * * ** *** *** * *** ****** **** * * *** * * * * zodiac sign is Pisces");
*** ** ** ** * * * * * ** * * * **** ** ** if(d >= 21 && d <= 31)
** ** * * * * * ****** * * ** ** * *** * ** *** * *** ** ** * ** * ** zodiac sign is Aries");
* ** * *** * * * * ***** *** * **** **
* * * **** * * ***** * * ** * ** *** * * ** * *** ** * **** *** invalid"); * ** ***** **** ***** ***** * * * *
* * * *** *** *** ** * *
* * * * ** ****** ** * if(m == 4){
* * * ***** ** ** *** * ** ******* ** * ** ***** ** < 20 && d > 0)
*** ** ** * * * ** * ** * ** **** ** **** *** * * * *** ** * * ** zodiac sign is Aries");
**** * * ** * * *** *** ** * * * * ** * **** * if(d >= 20 && d <= 30)
* * * * *** ** * * * *** * * * ** **** * * *** * *** * *** * * * * * * * ***** * * * zodiac sign is Taurus");
* * ** * ** **** ** *** ** * ** * * ** ** **
********* * * *** *** ** * * ** ** ** * ** * *** * ** * ** *** invalid"); * ** * ** ** *** ** ** *** ** **
* *** ******* ** ***
* ******* ** *** ** ** *** if(m == 5){
* ** * * * * * *** * * ** **** ** ** ** * * **** * < 21 && d > 0)
* *** **** ** ** * **** ** * * * **** * *** *** * ********* **** ** ** zodiac sign is Taurus");
* * *** * ***** ** ***** **** * * * ***** * if(d >= 21 && d <= 31)
*** **** * * * * * ***** * ** * ** **** * * **** * ** * *** ** *** * * ***** ** zodiac sign is Gemini");
* *** *** ** *** ***** **** * ** * **** * *
* ****** ** * * *** ** *** * * * * * ****** **** *** ** * * * * * invalid"); ** * * ** * *** ** *** ** **** *
* ** *** *** * * * * ***
* ** ** ** * * * * * *** if(m == 6){
* * ** *** * * * * *** * *** * *** * * * < 21 && d > 0)
**** **** * ******* * * * ** ** * * ** **** ** * **** ***** * ** * * * ** ** zodiac sign is Gemini");
** * * * ** ** **** ** * ****** ***** ** * * * * * *** if(d >= 21 && d <= 30)
** * ** ** *** ***** **** ** **** * * *** *** ** ** ** ****** *********** zodiac sign is Cancer");
* * * ** * ** ** *** ** ** * * ** ** *** *
*** * * ******* * * * ** * * * ** **** * ***** * * * * *** ** * ******** invalid"); * * ** * * * * ** * * * * *** * * * ** **
* *** * ** ***** ******
*** * * * * * * * ** *** if(m == 7){
******* * * * ** ** ** * ***** ** * * * ** < 23 && d > 0)
* * * ** * ** * ** * * * ** ** *** ** * * **** *** *** ** ** * * ** * ** * * ** zodiac sign is Cancer");
* * **** *** * ** * * ** ** * ** * * * * if(d >= 23 && d <= 31)
* * *** * ** *** * ** * ** * * ** * *** * *** *** ** ***** ** * * *** ** * * zodiac sign is Leo");
** ** ** * * ** * ** **** * ** * * * * * * *
* * ** ** ** ** * * *** ** * ** ** * *** ** * ** * ** **** ** invalid"); ** * * ******** ***** * ** * ** * * * * ***
** ** *** ***** **
** ** * * * * **** * * * ** * ** if(m == 8){
*** ** ** ** * *** * * ** ** * ** * * ** ** < 23 && d > 0)
**** ******** * * * * * ***** * ** *** *** * * ** ** * **** ** ****** ** * ** * * zodiac sign is Leo");
******* ** ** * * * * ** ** ** * ** * * *** if(d >= 23 && d <= 31)
* * ******* * * * * **** * *** * * ** ** * * * * * * * * * * *** ** * * ** zodiac sign is Virgo");
*** * ** * * ** *** * * * *** * **
** ** * * * ** ** * ** *** * * ****** * * ** * * * **** *** * * * invalid"); ** * **** ** **** * **** ** ** ** **
* * * * ** * * *
* * * *** * *** *** ** * if(m == 9){
* * * * * *** * * * * **** **** * * * < 23 && d > 0)
* * * *** ** *** ** * *** *** ** * * * * * * * *** *** **** ** ** *** zodiac sign is Virgo");
** * * ** ** * ** ** ***** *** * *** * * ** * if(d >= 23 && d <= 30)
* * * * *** * * * ** **** * ******* ** * * * * **** * * zodiac sign is Libra");
*** * * *** * * * ***** ** ** *** * * ** *
* * ***** ** * * * ** **** **** *** * *** * *** * ***** ** invalid"); * * ** ***** * * ** * * * *
*** * * * * * ***
** ******* ** * **** * * if(m == 10){
* * *** * * ** * * * * * * * * ** * * * < 23 && d > 0)
* * * *** * *** **** * ** * ** * * *** ** ** **** * ** ** * ** *** *** * *** ** ** zodiac sign is Libra");
* * * *** ** * ** ***** **** * ******* ** if(d >= 23 && d <= 31)
**** * * **** *** **** * ****** * ** ** **** * ** * ** * * ************* * *** ** * ** zodiac sign is Scorpio");
* ** * *** * **** ** * *** * * * ** ** ** * ** **
* * * * ** ** ***** * *** * ** *** ** * ** ** * ** **** ** * * ** * * invalid"); ** ** *** * * * ** ** ** *** *** ** * * **
**** * **** * * ** *
* * * * * *** * ** * if(m == 11){
******* ** * *** ** * * ** * **** * *** < 22 && d > 0)
** * ** * * * * *** * ** * * ***** **** * * * * *** * *** *** zodiac sign is Scorpio");
* ** *** * ***** ** * * * * if(d >= 22 && d <= 30)
* * *** * **** *** ** *** ** * ** * * *** * * * ** * * ** * * ** * ** ********* zodiac sign is ** * * * *
** * ** * ** ** *** ********* *** * * *** * **
* ** * * *** ** ** * * *** * ** *** **** ** *** *** *** * * * ** *** * * * invalid"); ** * ** * ** ** **** * * * * ** ** * ****
****** * * * ***** ***
** * ** * * ** * * if(m == 12){
* ** *** * * ******** * *** * *** * *** < 22 && d > 0)
*** * * ** * ** *** ** * * * ** ** * ** * * * ** ** *** ***** * * *** ** *** zodiac sign is Aquarius");
* ******* *** * * **** * * *** ** *** *** * if(d >= 22 && d <= 31)
***** * *** ** * *** *** * ** * * * *** ** * **** **** ** * ** * * *** * * zodiac sign is Capricorn");
** **** ** ** * **** ** ** *** ****** * * ***
* *** * ** ** * * ** *** *** ** ** *** ** ** * * * * ** ** * * * * **** invalid"); * **** * * * ** ***** * ** * ***** **
*** *** ***** ** *
* * ** * * * * ** * **** *
** * * * * * ***** ** * * * ** ** * ** *** * ***** ** * **
*** ** * * * ** * * * 0;
}
100/100 answered by (271 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
0 like 0 dislike
Hidden content!
** * * *** *** * *
* ** * ** *** ** *

int main(int argc, char *argv[]) {
* * ** **** * int y, m, d;
*** ** *
** * * *** *** *** * your birthday * * * * *
** ** * * ** *
* * * * *** *** * *** ** * **** ** ** * ******
* **** ** *
* ** * * * * if(m == 1){
* * * * * ** * if(d ** *** 20 * * d *** 0)
** ****** * * * ** * ** ** *** * * * ** **** * ** zodiac sign is * *** ** *
* * **** ** else if(d * * 20 * * d ** 31)
****** ** ** * *** ***** ***** * * * * * * zodiac sign is ** ** *
***** * ** * * *** * * * else
* **** * * ** ** * ** * * *** * * * * *** ** * * *
** * * }
* *** else if(m == 2){
* ** ******* ** **** *** ***** if(d < 19 * ** ** * d > 0)
* * * ** **** ** *** *** * ** **** * ** * **** * zodiac sign is * * **
** * *** *** * ** * * else if(d * ** * 19 * * * * *** d * * 28)
* ** * * ** * * * ** ** * ** *** * zodiac sign is * *
* * ** ** * * * else
* * ** * * * *** * * ***** *** ***** ** * ****** **** * * ***
* * * * }
* * *** else if(m == 3){
*** ** * ** * * ** if(d * * 21 ****** *** * d > 0)
* *** ** ** * ** * * * *** * * ** ** * * *** * *** zodiac sign is ** * **
* * * *** * * ** else if(d ** 21 ** * * d * ** * 31)
* * * ** ** * ** * * * ** * * **** **** * * zodiac sign is ***** ***
** * * * * *** * * * else
* ** ** * **** *** * ** * * * ** * * * * * * **** * *** * * * * *
* * ** * * }
** * else if(m == 4){
* **** * * * ** ** * if(d *** * 20 **** ***** d ** 0)
* ** * * *** ** ** ** *** * ** * ** * * ** ** * *** * *** zodiac sign is ******** **
** *** ***** ***** * ** * else if(d * * 20 * ** *** * * d * * * 30)
* * * * ** * * * *** ** * * * * * ** *** zodiac sign is * * *
** * ** * *** else
** * * * * * * ** ** ***** * ** * * * * ** * * **** * ** *** * * * * * ******
* *** * ** * }
* * * * else if(m == 5){
* * * ** * * **** * if(d * * * 21 * * *** ** * d > 0)
* *** *** * * * **** * **** ** ** * * * * zodiac sign is * **** *
**** * * ** *** * else if(d ** ** 21 *** ** d ** * 31)
* ** * ** * **** * ** **** * *** ** * zodiac sign is * *** * * ****
**** ** *** ** * else
* *** ** * * * * * *** ** * ** ** ** ** * ** ** * * ** *** ** ** ** * * ** *** **
* * ** **** }
* ** ** * else if(m == 6){
*** * ** * * *** * * ** if(d < 21 ** ** * d > 0)
* * ** ** ** * * * * * * *** * * * ** ** ** zodiac sign is * ** ***
* *** * * * ** else if(d * ** ** 21 * * * *** d * *** 30)
* * * ** *** * **** ****** * *** ** * ******** * zodiac sign is * ** *
** ** * *** * ** ** * * else
* ** ***** * ** * ** * * * *** * **** * ** ** * * * *** ** ****** ** **** **
* * ****** }
** * * else if(m == 7){
* * ** ** * * if(d ** 23 * ** * ** * d * 0)
* * * *** *** *** * * * *** * * * * * *** ** * zodiac sign is ** ** ** *
* * ** * ** ** ** *** * else if(d * 23 **** * * d *** 31)
*** ** * * * *** ***** ** * * * ** * * * zodiac sign is *
** * ** * **** ****** else
*** * * * ** * * * * *** ** ** * * * ** * **** ** * * *** * * * * * *
* * *** }
******* * else if(m == 8){
** * * ** ****** * * * if(d ** 23 * * * ** d ** ** 0)
* **** **** *** * * * * * ** *** ** ***** *** zodiac sign is * **
* * * * *** * **** else if(d *** * 23 * ** * * d * * 31)
*** *** * * **** * * *** **** * **** zodiac sign is * * * ***
***** ** **** * *** * else
* * *** * ** * ** * ** ** ** **** * ** * ** *** *** ****** ** * **
* * * }
* * else if(m == 9){
*** *** ** * * * if(d ** ** 23 **** ** d * * 0)
** ** * ** * *** *** * * * * * * ** *** * ** ** ** zodiac sign is * ******
**** * * * * else if(d ** ** 23 ** * ** d * ** 30)
* * * * ** ** * ** ** * *** * * * zodiac sign is *** **
* **** *** ** * * * * else
* ***** * * * * *** * ** * *** * **** ** ** * * **** * *** *** * * *** ** *
*** * * ***** }
** ** * ** * ** else if(m == 10){
* ** ** ** * * ** *** * if(d * * 23 ** * ** d ** * 0)
*** ** * * * * ** * * **** ** * ** * * * zodiac sign is * *** * *
* * *** ** * *** * else if(d 23 * * * * * d * ** 31)
* * * ***** * * * * ** * ***** *** * ** * * * zodiac sign is * ****
** **** ** *** * * * * * else
* *** * * * *** * * *** * ** * ** * *** *** ** * * * * * ** ** * * * ***
* ** *** * **** }
** * ** else if(m == 11){
* * * * ** * * * * if(d * 22 * * * * d *** 0)
*** * *** * ** * *** * * * ** ** * * zodiac sign is ** * *
* * * **** * * * * * * else if(d * 22 * * ** ** * d * * 30)
* *** * ***** ** *** * * **** ** ***** * ** * zodiac sign is * ** ** * **
******** * * * * else
******** ** ** * * * * * * * *** ** *** ** ** *** * * * *** *** * * * * ** * **
** * *** ** }
* * ** * * * * else if(m == 12){
* *** * *** ***** if(d * * 22 ** ** ** d ** 0)
**** ** ** ** *** ** * *** *** * * * * * * zodiac sign is * ** * ******
******* * ** * ** * * * else if(d *** * 22 * *** ***** d * *** 31)
* * ** ****** * *** * * * * **** * * ****** zodiac sign is ** * ** * ** *
* * **** * * * **** * *** ** else
* *** * ** * * * ** * ******* *** * * ** * * * *** * * * * * * *** * * *** *
** * }
** * * * else
** * *** ** * * * * ** * ** *** * **** *
* ** ** * return 0;
}
100/100 answered by (243 points)
reshown by
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
1 like 0 dislike
Hidden content!
* ** ** * *
* * * * * ** ***

int main(int argc, char *argv[]) {
* *** **** int y, m, d;
* **** *
***** * * * * * ** *** your birthday *** ** * * *
** ** * ** * *
* **** * * * * * *** ** ***** * ** * **** ***** * ** ** *
* ** * ** *
* * * * if(m == 1){
* ** * * *** * * if(d **** 20 ** * *** * d * 0)
* **** ** *** * * ** * * *** ** *** * zodiac sign is **** * * ****
* * ** * *** ***** else if(d ***** 20 * * ** d *** * 31)
* ** * * * * * ** * * * * ** * * **** ** zodiac sign is * * ** *
*** ** ** ** * ** ** * * else
** **** * ** ** * * *** * ** * *** * * *** * ** **** ***** **
* *** * **** }
*** * * * else if(m == 2){
* * * * * * ** ** * if(d < 19 ** ** * d > 0)
*** * * ** ** * ** *** * * * * * ** * * * * zodiac sign is * * ** *
* ** ** * **** * else if(d * * 19 ***** * * d * *** 28)
* **** ** ** *** * *** * * * * **** *** *** ** zodiac sign is * * * *
* *** * ** * * * ** * * else
***** * * *** ** *** * * * ** * ** *** ** *** *** **** *** * * * *
* ** ** * }
** * * *** * else if(m == 3){
* ** *** * ** * if(d ** * 21 *** * * * d > 0)
** * * * ***** *** * * * ** ** * * * * * * ** ** ** zodiac sign is *** *** ****
**** ** * * **** * else if(d 21 **** * * * d ** 31)
** ** * * * * *** * ** ** * * * * * * ** *** zodiac sign is * *** **
** ** **** * * * *** ** else
*** * * * * * * * * * ** ** * * ** ** * * **** ** *** * * * ** * ** ** ** *
* ** *** *** }
** **** *** else if(m == 4){
*** * * ** * * * * ** * * if(d * ** 20 ** * *** * d * * * 0)
*** ** ** * ** **** * ** * * ** ** ** zodiac sign is * *
*** **** * * ** * else if(d * ** 20 * * **** d **** 30)
* * * * * * * * ****** **** * * * * * * * * * zodiac sign is *** **** *
*** *** * *** else
*** * ** * ** ** ** ** * *** * *** ** * ** *** * * ** * ** ** * *** ** ** *** * * ****
*** * * * }
* ***** * ** else if(m == 5){
* ** * * *** * * ** ** * * if(d ** * * 21 * ** *** * * d > 0)
*** *** * * * * ** ** **** * *** ** * * * * *** **** * * ** zodiac sign is * * *** *
* *** * * * * * * * * * else if(d * * * 21 ** *** d ** ** 31)
* * * ** * * * *** ** * **** * ***** * zodiac sign is ****** * * *
** ** * ** * ***** * * else
* * * *** * ** * * ** * * *** * ***** * ** ** * * * *** * * ** ** *** * **
** ** *** * }
** * *** * else if(m == 6){
** * * * * * * ** ** if(d < 21 *** * * * d > 0)
* ** ** ** ** * *** * * * * ** * ** *** zodiac sign is ** **** *
***** * *** ** * * * else if(d *** 21 ** ** ** d * * 30)
***** * ** ** * *** ** * ** ** *** ** ** *** ** * zodiac sign is * *
** ** ** ***** ** * else
** * * * *** * **** ** * * ** * * ** * * * *** * * * * * * ** ** ****
*** ** * *** }
** **** ** * else if(m == 7){
* * * * ** * * * if(d * 23 * **** d * 0)
** *** ** * * * * * * * * ** ** **** ** zodiac sign is * ****** * *
* * * * ** * * ** **** * * else if(d * * 23 * * * ** d * * ** 31)
* *** ** * * * * * * *** * ** * ** * * ** * zodiac sign is ** ** ***
* * * * ** ** * ** * ** else
*** * ** ** *** ****** **** * *** * *** ** ** ** **** ** * *** *** * ** ****
* * ** * }
****** *** * else if(m == 8){
** * * **** ** * if(d * 23 ** ** d * * 0)
* ** * ** * ** ** ** * * * * * * * zodiac sign is * * * *
* **** * *** ** * * * else if(d * *** 23 ***** * d ** 31)
** ** * ** ** **** * * * ** ***** * ** *** ** *** * zodiac sign is * * * **
* * * *** ** ** * * * else
* * ** * * *** * * *** * ** * * ** * **** ** ***** ** * * ** * ** * * *
*** ** * }
** ** * * ** else if(m == 9){
* * * ** * ** if(d ** * 23 ** * ** * d ** 0)
* *** * ** * * ** * * *** * * *** * ******* zodiac sign is **** *
** **** ** *** ****** * ** *** else if(d * 23 ** *** * d ** * 30)
* * * ** * * ** * ** *** **** ** * * zodiac sign is ** ****
* ** ** ** * * * * * ** *** else
******* * ** * ** ** ** * * * * * * ** *** * * ** **** *** * ** **** *** ****
* * * **** }
** * * * else if(m == 10){
** * ** * * ** * ** * if(d ***** 23 * *** ** d * 0)
* * * * ** ** ** *** * ** ***** *** * ** zodiac sign is * ** * * *
* *** * *** ** ** * * * * else if(d 23 * * * d ** * * 31)
* * * * * * * * ***** * * * * ** ******** ** zodiac sign is *** *** ***
**** * * *** * ** else
** *** ** **** ** * ** ** ** * ** * ** * * * * *** ** * * * * * ** *** * * **
** **** }
*** * *** * else if(m == 11){
* ** *** ** *** ** * ** ** * if(d *** 22 **** * *** d * * * 0)
* * * * ** ** * * * * * ***** ****** * * * ** zodiac sign is ***** * *
** * * * * * ** * else if(d * * * 22 **** *** * d * ** 30)
* * * ** **** ** * * * * * **** ** * ** zodiac sign is * *** ****** *
* ***** * * * ** * * ** ** else
* *** ** ** ** *** ** * * * ** *** * * * * * * ** * * * * * * * **
** *** ** * * }
* ***** * ** ** else if(m == 12){
* * ** * * **** * if(d ** * 22 **** *** d ** 0)
* * * **** * ** ** ** ** * * * ** * ** * ** zodiac sign is * ** * ** *
**** ** ** * * ** * *** * else if(d * *** 22 **** * d ** 31)
* * * ** * ** *** * *** * * ** *** *** zodiac sign is * *** *
*** * * * ** * *** * else
***** * ** *** * * * **** *** * ** *** ** * **** *** ** * ** ** * *** * * * *
*** * ** }
*** ** * * else
* * *** * * **** * **** *** ** * * **
** *** return 0;
}
100/100 answered by (269 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
Case 2: Wrong output
Case 3: Wrong output
Case 4: Wrong output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.59.97
©2016-2025

Related questions

0 like 0 dislike
14 answers
[Exercise] Essay (Open question) - asked Nov 2, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 30244 - Available when: Unlimited - Due to: Unlimited
| 3.2k views
0 like 0 dislike
24 answers
[Exercise] Coding (C) - asked Nov 2, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 30241 - Available when: Unlimited - Due to: Unlimited
| 6.6k views
0 like 0 dislike
17 answers
[Exercise] Coding (C) - asked Oct 27, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 29618 - Available when: Unlimited - Due to: Unlimited
| 5.9k views
1 like 0 dislike
23 answers
[Exercise] Coding (C) - asked Oct 20, 2017 in Chapter 3: Branching, Looping and Functions by nat236919 (5.9k points)
ID: 28130 - Available when: Unlimited - Due to: Unlimited
| 7.1k views
12,783 questions
183,442 answers
172,219 comments
4,824 users