can anyone check if there's any error to my program...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#include<stdio.h>
#include<conio.h>

struct zodiac{
	char day[30];
	char month[30];
	char year[30];
} z1;

void main()
{
     char ans;

        do{
	printf("Enter your birthday (D\M\Y): ");
	scanf("%s%s%s",z1.day,z1.month,z1.year);

if(z1.month=='december' || z1.month =='january')
{
    if(z1.day=='22' && z1.day=='19')
    {
	printf("\nYour zodiac sign is CAPRICORN.");
    }
} 
if(z1.month=='january' || z1.month=='february')
{
    if(z1.day=='20' && z1.day=='19')
    {
 	printf("\nYour zodiac sign is AQUARIOUS.");
    }
}
if(z1.month=='february' || z1.month=='march')
{
    if(z1.day=='20' && z1.day=='20')
    {
	printf("\nYour zodiac sign is PISCES.");
    }
}
if(z1.month=='march' || z1.month=='april')
{
    if(z1.day=='21' && z1.day=='20')
    {   
	printf("\nYour zodiac sign is ARIES.");
    }
}
if(z1.month=='april' || z1.month=='may')
{
    if(z1.day=='21' && z1.day=='21')
    {
	printf("\nYour zodiac sign is TAURUS.");
    }
}
if(z1.month=='may'' || z1.month=='june'')
{
     if(z1.day=='22' && z1.day=='21')
    {
	printf("\nYour zodiac sign is GEMINI.");
    }
}
if(z1.month==''june' || z1.month=='july')
{
    if(z1.day=='22' && z1.day=='22')
    {
	printf("\nYour zodiac sign is CANCER.");
    }
}
if(z1.month=='july' || z1.month=='august')
{
    if(z1.day=='23' && z1.day=='23')
    {
	printf("\nYour zodiac sign is LEO.");
    }
}	
 if(z1.month=='august' || z1.month=='september')
{
    if(z1.day=='24' && z1.day=='23')
    {
	printf("\nYour zodiac sign is VIRGO.");
    }
}
if(z1.month=='september' || z1.month=='october')
{
    if(z1.day=='24' && z1.day=='23')
    {
	printf("\nYour zodiac sign is LIBRA.");
    }
}
if(z1.month=='october' || z1.month=='november')
{
    if(z1.day=='24' && z1.day=='21')
    {
	printf("\nYour zodiac sign is SCORPIO.");
    }
}
if(z1.month=='november' || z1.month=='december')
{
    if(z1.day=='22' && z1.day=='21')
    {
	priintf("\nYour zodiac sign is SAGITTARIUS.");
    }
}

if(z1.year=='1948' || z1.year=='1960' || z1.year=='1972' || z1.year=='1984' || z1.year=='1996' || z1.year=='2008')
{	
	printf("Your chinese birthsign is RAT");
	printf("Your Lucky Colors are: \t Red Yellow Brown");
	printf("Your Lucky Numbers are: \t 1,3");
	printf("Message: \n The new cycle of 12 begins with you and hopefully you can lead the pact for a better and brighter future.");
}
if(z1.year=='1937' || z1.year=='1949' || z1.year=='1961' || z1.year=='1973' || z1.year=='1985' || z1.year=='1997')
{
	printf("Your chinese birthsign is OX");
	printf("Your Lucky Colors are: \t Red Purple Brown");
	printf("Your Lucky Numbers are: \t 6,8");
	printf("Message: \n When studious can pass examinations favourably.");
}
if(z1.year=='1938' || z1.year=='1950' || z1.year=='1962' || z1.year=='1974' || z1.year=='1986' || z1.year=='1998')
{
	printf("Your chinese birthsign is TIGER");
	printf("Your Lucky Colors are: \t Red  Brown Yellow");
	printf("Your Lucky Numbers are: \t 3,8");
	printf("Message: \n Finance will be average, there's opportunity to you to go abroad.");
}
if(z1.year=='1939' || z1.year=='1951' ||z1.year=='1963' ||z1.year=='1975' ||z1.year=='1987' ||z1.year=='1999')
{
	printf("Your chinese birthsign is RABBIT");
	printf("Your Lucky Colors are: \t Yellow Green Brown");
	printf("Your Lucky Numbers are: \t 2,9");
	printf("Message: \n Couple and friends relationship will improve but monetary matter is not so bright.");
}
if(z1.year=='1940' || z1.year=='1952' ||z1.year=='1964' ||z1.year=='1976' ||z1.year=='1988' ||z1.year=='2000')
{
	printf("Your chinese birthsign is DRAGON");
	printf("Your Lucky Colors are: \t Yellow Green Brown");
	printf("Your Lucky Numbers are: \t 5,8");
	printf("Message: \n There are threats of robbery, accident and being swindled so be very careful.");
}
if(z1.year=='1941' || z1.year=='1953' ||z1.year=='1965' ||z1.year=='1977' ||z1.year=='1989' ||z1.year=='2001')
{
	printf("Your chinese birthsign is SNAKE");
	printf("Your Lucky Colors are: \t Green Brown Yellow");
	printf("Your Lucky Numbers are: \t 4,7");
	printf("Message: \n This is better year than 2007 your fortune is on the upswing.");
}
if(z1.year=='1942' || z1.year=='1954' ||z1.year=='1966' ||z1.year=='1978 ' ||z1.year=='1990' ||z1.year=='2002') 
{
	printf("Your chinese birthsign is HORSE");
	printf("Your Lucky Colors are: \t Blue White Black");
	printf("Your Lucky Numbers are: \t 4,5");
	printf("Message: \n There will be much disturbed by all the trials in your surrounding. Try to maintain your composure, step back and control your impluse to avoid trouble.");
}
if(z1.year=='1943' || z1.year=='1955' ||z1.year=='1967' ||z1.year=='1979' ||z1.year=='1991' ||z1.year=='2003')
{
	printf("Your chinese birthsign is SHEEP");
	printf("Your Lucky Colors are: \t Blue Grey Black");
	printf("Your Lucky Numbers are: \t 1,6");
	printf("Message: \n Remember to be modest and do not brag about what you have lest you could drive away your benefactor.");
}
if(z1.year=='1944' || z1.year=='1956' ||z1.year=='1968' ||z1.year=='1980' ||z1.year=='1992' ||z1.year=='2004')
{
	printf("Your chinese birthsign is MONKEY");
	printf("Your Lucky Colors are: \t White Blue Black");
	printf("Your Lucky Numbers are: \t 2,3");
	printf("Message: \n You need to think carefully and don't be greedy.");
}
if(z1.year=='1945' || z1.year==' 957' ||z1.year=='1969' ||z1.year=='1981' ||z1.year=='1993' ||z1.year=='2005')
{
	printf("Your chinese birthsign is ROOSTER");
	printf("Your Lucky Colors are: \t Purple Red Brown");
	printf("Your Lucky Numbers are: \t 7,9");
	printf("Message: \n Wedding is feasible, there's chance for migration and getting good result from examinations.");
}
if(z1.year=='1946' || z1.year=='1958' ||z1.year=='1970' ||z1.year=='1982' ||z1.year=='1994' ||z1.year=='2006')
{
	printf("Your chinese birthsign is DOG");
	printf("Your Lucky Colors are: \t Blue Grey Black");
	printf("Your Lucky Numbers are: \t 2,6");
	printf("Message: \n Take care of the ederly. Business will be fine but there's problem to be encounter in work place.");
}
if(z1.year=='1947' || z1.year=='1959' ||z1.year=='1971' ||z1.year=='1983' ||z1.year=='1995' ||z1.year=='2007')
{
	printf("Your chinese birthsign is PIG");
	printf("Your Lucky Colors are: \t Red Green Brown");
	printf("Your Lucky Numbers are: \t 1,9");
	printf("Message: \n You'll start to realize that things are getting better and burden lightens up.");
}
      printf("Try Again? y/n: ");
      scanf("%c",&ans);
}while(ans=='n'); 


Look for double single quotes in your source: i.e. '', like when the code says your zodiac is Cancer
Topic archived. No new replies allowed.