Hi,dear all...
Im new to C and to this discussion forum.
i hv a problem here,which is an array passing problem.
int calAge(]) doesnt work well.
i tried to look from the internet for reference but get nothing.
can u all help me to check it out?coz im not familiar at it...
thxs 1st for ur kindness....

#include <stdio.h>
#include <string.h>
#define SIZE 100

int chineseYear();
int calAge();
int i,birthYear[SIZE], birthMonth[SIZE], birthDay[SIZE],currentYear[SIZE],currentMonth[SIZE],currentDay[SIZE];
char opt,name[SIZE][20];

	int years[SIZE];
	int months[SIZE];
	int days[SIZE];

void main()
{
	for(i=0;i<SIZE;i++)
	{
		printf("############################################\n");
		printf("##### Birthday Calculator Beta Version #####\n");
		printf("############################################\n");
		printf("\n");

		beginning:

		printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
		scanf("%c",&opt);

		if((opt=='Y')||(opt=='y'))
		{
			printf("Please enter your name: ");
			scanf("%s",&name[i]);			

			start:
			printf("Please enter current year: ");
			scanf("%d",&currentYear[i]);

			month:
			printf("Please enter current month: ");
			scanf("%d",&currentMonth[i]);
			if(currentMonth[i]<1||currentMonth[i]>12)
			{
				printf("Wrong month input.Please enter again.\n");
				goto month;
			}

			day:
			printf("Please enter current day: ");
			scanf("%d",&currentDay[i]);
			if(currentDay[i]<1||currentDay[i]>31)
			{
				printf("Wrong day input.Please enter again.\n");
				goto day;
			}

			printf("Please enter the year of your birth (1908-2008): ");
			scanf("%d",&birthYear[i]);

			if (birthYear[i]<1908||birthYear[i]>2008)
			{
				printf("Wrong year input.Please enter again.\n");
				goto start;
			}

			skip:
			printf("Please enter the month of your birth (1-12): ");
			scanf("%d",&birthMonth[i]);

			if (birthMonth[i]==1)
			{
				back:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);
				printf("\n");

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is GARNET.\n");
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is GARNET.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back;
				}

			}

			else if (birthMonth[i]==2)
			{
				back1:
				printf("Please enter the day of your birth (1-29): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=18)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else if (birthDay[i]>18&&birthDay[i]<=29)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back1;
				}

			}

			else if (birthMonth[i]==3)
			{
				back2:
				printf("Please enter the day of your birth (1-31):\n");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back2;
				}

			}

			else if (birthMonth[i]==4)
			{
				back3:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back3;
				}

			}

			else if (birthMonth[i]==5)
			{
				back4:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is EMERALD.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is EMERALD.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back4;
				}

			}

			else if (birthMonth[i]==6)
			{
				back5:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back5;
				}

			}

			else if (birthMonth[i]==7)
			{
				back6:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back6;
				}

			}

			else if (birthMonth[i]==8)
			{
				back7:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthMonth[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back7;
				}

			}

			else if (birthMonth[i]==9)
			{
				back8:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back8;
				}

			}

			else if (birthMonth[i]==10)
			{
				back9:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}
				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back9;
				}

			}

			else if (birthMonth[i]==11)
			{
				back10:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is TOPAZ.\n");
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TOPAZ.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back10;
				}

			}

			else if (birthMonth[i]==12)
			{
				back11:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back11;
				}

			}
			else
			{
				printf("Wrong month input.Please enter again.\n");
				goto skip;
			}

		}

		else if((opt=='N')||(opt=='n'))
		{
			i=SIZE;
		}

		else
		{
			printf("Invalid Input.Please try to enter again.\n");
			goto beginning;
		}

	}

}

int chineseYear()
{
	if (birthYear[i]==1992||birthYear[i]==1980||birthYear[i]==2004)
		printf("You are born in the Chinese year of the MONKEY.\n");
	else if (birthYear[i]==1993||birthYear[i]==1981||birthYear[i]==2005)
		printf("You are born in the Chinese year of the ROOSTER.\n");
	else if (birthYear[i]==1994||birthYear[i]==1982||birthYear[i]==1970||birthYear[i]==2006)
		printf("You are born in the Chinese year of the DOG.\n");
	else if (birthYear[i]==1995||birthYear[i]==1971||birthYear[i]==1983||birthYear[i]==2007)
		printf("You are born in the Chinese year of the BOAR.\n");
	else if (birthYear[i]==1996||birthYear[i]==1984||birthYear[i]==1972||birthYear[i]==2008)
		printf("You are born in the Chinese year of the RAT.\n");
	else if (birthYear[i]==1997||birthYear[i]==1985||birthYear[i]==1973)
		printf("You are born in the Chinese year of the OX.\n");
	else if (birthYear[i]==1998||birthYear[i]==1986||birthYear[i]==1974)
		printf("You are born in the Chinese year of the TIGER.\n");
	else if (birthYear[i]==1975||birthYear[i]==1999||birthYear[i]==1987)
		printf("You are born in the Chinese year of the RABBIT.\n");
	else if (birthYear[i]==1976||birthYear[i]==2000||birthYear[i]==1988)
		printf("You are born in the Chinese year of the DRAGON.\n");
	else if (birthYear[i]==1977||birthYear[i]==2001||birthYear[i]==1989)
		printf("You are born in the Chinese year of the SNAKE.\n");
	else if (birthYear[i]==2002||birthYear[i]==1978||birthYear[i]==1990)
		printf("You are born in the Chinese year of the HORSE.\n");
	else if (birthYear[i]==2003||birthYear[i]==1979||birthYear[i]==1991)
		printf("You are born in the Chinese year of the RAM.\n");
	return 0;
}



int calAge(int currentYear[],int currentMonth[],int currentDay[],int birthYear[],int birthMonth[],int birthDay[])
{
	for(i=0;i<SIZE;i++)
	{
		years[i]=currentYear[i]-birthYear[i];
		if((birthMonth[i]>currentMonth[i])||((birthMonth[i]==currentMonth[i])&&(birthDay[i]>currentDay[i])))
		{
			years[i]=years[i]-1;
		}

		months[i]=currentMonth[i]-birthMonth[i];
		if(birthDay[i]>currentDay[i])
		{
			months[i]=months[i]-1;
		}

		days[i]=currentDay[i]-birthDay[i];
		if(birthDay[i]>currentDay[i])
		{
			days[i]=(currentDay[i]+30)-birthDay[i];
		}

		printf("You are %d years, %d months, %d days old.\n",years[i],months[i],days[i]);
	}
		return 0;
}

First thing first...
You want to calculate the age of a particular user, why do want an array for that?...

Second...

/* Function Prototype */
int calAge(int currentYear[],int currentMonth[],int currentDay[],int birthYear[],int birthMonth[],int birthDay[])
/* Function Call */				calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);

The above function call and prototype does not match... In the function prototype, you have declared arrays as arguments... but in the function call you are not passing the arrays instead just a particular value(of an array)... this will surely make your program crash...

If all you want is to calculate the age of the person, just do it like this...

/* Function Prototype */
int calAge(int currentYear,int currentMonth,int currentDay,int birthYear,int birthMonth,int birthDay){
/* Put in your logic(existing one) without any array stuff */
}
/* Function Call */				calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);

Next...

/* Not a good idea */
void main()
/* Use this instead */
int main(int argc, char **argv)

Next...

/* This is wrong... */
scanf("%s",&name[i]);
/* You are taking in a string(array of chars), so no need of &, use it this way */
scanf("%s",name[i]);
commented: That's a lot of effort; going through that code. +10
/* Not a good idea */
void main()
/* Use this instead */
int main(int argc, char **argv)

Next...

/* This is wrong... */
scanf("%s",&name[i]);
/* You are taking in a string(array of chars), so no need of &, use it this way */
scanf("%s",name[i]);

thanks for ur help..i hv several questions here:
what does this mean?-------->int main(int argc, char **argv)

and i hv done what u said,but there are some errors and warnings appeared.
here is the coding:

#include <stdio.h>
#include <string.h>
#define SIZE 100

int chineseYear();
int calAge();
int i,birthYear[SIZE], birthMonth[SIZE], birthDay[SIZE],currentYear[SIZE],currentMonth[SIZE],currentDay[SIZE];
char opt,name[SIZE][20];

	int years[SIZE];
	int months[SIZE];
	int days[SIZE];

int main(int argc, char **argv)
{
	for(i=0;i<SIZE;i++)
	{
		printf("############################################\n");
		printf("##### Birthday Calculator Beta Version #####\n");
		printf("############################################\n");
		printf("\n");

		beginning:

		printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
		scanf("%c",&opt);

		if((opt=='Y')||(opt=='y'))
		{
			printf("Please enter your name: ");
			scanf("%s",name[i]);

			start:
			printf("Please enter current year: ");
			scanf("%d",&currentYear[i]);

			month:
			printf("Please enter current month: ");
			scanf("%d",&currentMonth[i]);
			if(currentMonth[i]<1||currentMonth[i]>12)
			{
				printf("Wrong month input.Please enter again.\n");
				goto month;
			}

			day:
			printf("Please enter current day: ");
			scanf("%d",&currentDay[i]);
			if(currentDay[i]<1||currentDay[i]>31)
			{
				printf("Wrong day input.Please enter again.\n");
				goto day;
			}

			printf("Please enter the year of your birth (1908-2008): ");
			scanf("%d",&birthYear[i]);

			if (birthYear[i]<1908||birthYear[i]>2008)
			{
				printf("Wrong year input.Please enter again.\n");
				goto start;
			}

			skip:
			printf("Please enter the month of your birth (1-12): ");
			scanf("%d",&birthMonth[i]);

			if (birthMonth[i]==1)
			{
				back:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);
				printf("\n");

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is GARNET.\n");
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is GARNET.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back;
				}

			}

			else if (birthMonth[i]==2)
			{
				back1:
				printf("Please enter the day of your birth (1-29): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=18)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else if (birthDay[i]>18&&birthDay[i]<=29)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back1;
				}

			}

			else if (birthMonth[i]==3)
			{
				back2:
				printf("Please enter the day of your birth (1-31):\n");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back2;
				}

			}

			else if (birthMonth[i]==4)
			{
				back3:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back3;
				}

			}

			else if (birthMonth[i]==5)
			{
				back4:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is EMERALD.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is EMERALD.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back4;
				}

			}

			else if (birthMonth[i]==6)
			{
				back5:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back5;
				}

			}

			else if (birthMonth[i]==7)
			{
				back6:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back6;
				}

			}

			else if (birthMonth[i]==8)
			{
				back7:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthMonth[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back7;
				}

			}

			else if (birthMonth[i]==9)
			{
				back8:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back8;
				}

			}

			else if (birthMonth[i]==10)
			{
				back9:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}
				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back9;
				}

			}

			else if (birthMonth[i]==11)
			{
				back10:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is TOPAZ.\n");
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TOPAZ.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back10;
				}

			}

			else if (birthMonth[i]==12)
			{
				back11:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back11;
				}

			}
			else
			{
				printf("Wrong month input.Please enter again.\n");
				goto skip;
			}

		}

		else if((opt=='N')||(opt=='n'))
		{
			i=SIZE;
		}

		else
		{
			printf("Invalid Input.Please try to enter again.\n");
			goto beginning;
		}

	}
	return 0;

}

int chineseYear()
{
	if (birthYear[i]==1992||birthYear[i]==1980||birthYear[i]==2004)
		printf("You are born in the Chinese year of the MONKEY.\n");
	else if (birthYear[i]==1993||birthYear[i]==1981||birthYear[i]==2005)
		printf("You are born in the Chinese year of the ROOSTER.\n");
	else if (birthYear[i]==1994||birthYear[i]==1982||birthYear[i]==1970||birthYear[i]==2006)
		printf("You are born in the Chinese year of the DOG.\n");
	else if (birthYear[i]==1995||birthYear[i]==1971||birthYear[i]==1983||birthYear[i]==2007)
		printf("You are born in the Chinese year of the BOAR.\n");
	else if (birthYear[i]==1996||birthYear[i]==1984||birthYear[i]==1972||birthYear[i]==2008)
		printf("You are born in the Chinese year of the RAT.\n");
	else if (birthYear[i]==1997||birthYear[i]==1985||birthYear[i]==1973)
		printf("You are born in the Chinese year of the OX.\n");
	else if (birthYear[i]==1998||birthYear[i]==1986||birthYear[i]==1974)
		printf("You are born in the Chinese year of the TIGER.\n");
	else if (birthYear[i]==1975||birthYear[i]==1999||birthYear[i]==1987)
		printf("You are born in the Chinese year of the RABBIT.\n");
	else if (birthYear[i]==1976||birthYear[i]==2000||birthYear[i]==1988)
		printf("You are born in the Chinese year of the DRAGON.\n");
	else if (birthYear[i]==1977||birthYear[i]==2001||birthYear[i]==1989)
		printf("You are born in the Chinese year of the SNAKE.\n");
	else if (birthYear[i]==2002||birthYear[i]==1978||birthYear[i]==1990)
		printf("You are born in the Chinese year of the HORSE.\n");
	else if (birthYear[i]==2003||birthYear[i]==1979||birthYear[i]==1991)
		printf("You are born in the Chinese year of the RAM.\n");
	return 0;
}

int calAge(int currentYear,int currentMonth,int currentDay,int birthYear,int birthMonth,int birthDay)
{
		years=currentYear-birthYear;
		if((birthMonth>currentMonth)||((birthMonth==currentMonth)&&(birthDay>currentDay)))
		{
			years=years-1;
		}

		months=currentMonth-birthMonth;
		if(birthDay>currentDay)
		{
			months=months-1;
		}

		days=currentDay-birthDay;
		if(birthDay>currentDay)
		{
			days=(currentDay+30)-birthDay;
		}

		printf("You are %d years, %d months, %d days old.\n",years,months,days);
return 0;
}

--------------------Configuration: Copy of BirthdayCal - Win32 Debug--------------------
Compiling...
Copy of BirthdayCal.c
Copy of BirthdayCal.c(555) : warning C4047: '=' : 'int [100]' differs in levels of indirection from 'int '
Copy of BirthdayCal.c(555) : error C2106: '=' : left operand must be l-value
Copy of BirthdayCal.c(558) : error C2106: '=' : left operand must be l-value
Copy of BirthdayCal.c(561) : warning C4047: '=' : 'int [100]' differs in levels of indirection from 'int '
Copy of BirthdayCal.c(561) : error C2106: '=' : left operand must be l-value
Copy of BirthdayCal.c(564) : error C2106: '=' : left operand must be l-value
Copy of BirthdayCal.c(567) : warning C4047: '=' : 'int [100]' differs in levels of indirection from 'int '
Copy of BirthdayCal.c(567) : error C2106: '=' : left operand must be l-value
Copy of BirthdayCal.c(570) : warning C4047: '=' : 'int [100]' differs in levels of indirection from 'int '
Copy of BirthdayCal.c(570) : error C2106: '=' : left operand must be l-value
Error executing cl.exe.

int years[SIZE];
	int months[SIZE];
	int days[SIZE];

The above variables are declared as arrays, they dont need to be arrays... simple variables would do...

int main(int argc, char **argv)

The return type of the main should be int... cause system expects a return value after executing your program...

int argc, char **argv -- you dont need them if you dont have anything to do with the command line arguments...
anyways--- argc gives the number of command line arguments and argv gives the value of the command line arguments...

int years[SIZE];
	int months[SIZE];
	int days[SIZE];

The above variables are declared as arrays, they dont need to be arrays... simple variables would do...

int main(int argc, char **argv)

The return type of the main should be int... cause system expects a return value after executing your program...

int argc, char **argv -- you dont need them if you dont have anything to do with the command line arguments...
anyways--- argc gives the number of command line arguments and argv gives the value of the command line arguments...

ohya!~a serious mistake!~thxs for correct me...i should realise it~
anyway...
this problem is solved.the next problem now is...
during the execution,it can work well for the 1st time input,but goes wrong for the second input...really confusing,i wonder wat goes wrong...

i post the coding and output again:

#include <stdio.h>
#include <string.h>
#define SIZE 100

int chineseYear();
int calAge();
int i,birthYear[SIZE], birthMonth[SIZE], birthDay[SIZE],currentYear[SIZE],currentMonth[SIZE],currentDay[SIZE];
char opt,name[SIZE][20];

	int years;
	int months;
	int days;

int main(int argc, char **argv)
{
	for(i=0;i<SIZE;i++)
	{
		printf("############################################\n");
		printf("##### Birthday Calculator Beta Version #####\n");
		printf("############################################\n");
		printf("\n");

		beginning:

		printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
		scanf("%c",&opt);

		if((opt=='Y')||(opt=='y'))
		{
			printf("Please enter your name: ");
			scanf("%s",name[i]);

			start:
			printf("Please enter current year: ");
			scanf("%d",&currentYear[i]);

			month:
			printf("Please enter current month: ");
			scanf("%d",&currentMonth[i]);
			if(currentMonth[i]<1||currentMonth[i]>12)
			{
				printf("Wrong month input.Please enter again.\n");
				goto month;
			}

			day:
			printf("Please enter current day: ");
			scanf("%d",&currentDay[i]);
			if(currentDay[i]<1||currentDay[i]>31)
			{
				printf("Wrong day input.Please enter again.\n");
				goto day;
			}

			printf("Please enter the year of your birth (1908-2008): ");
			scanf("%d",&birthYear[i]);

			if (birthYear[i]<1908||birthYear[i]>2008)
			{
				printf("Wrong year input.Please enter again.\n");
				goto start;
			}

			skip:
			printf("Please enter the month of your birth (1-12): ");
			scanf("%d",&birthMonth[i]);

			if (birthMonth[i]==1)
			{
				back:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);
				printf("\n");

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is GARNET.\n");
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is GARNET.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back;
				}

			}

			else if (birthMonth[i]==2)
			{
				back1:
				printf("Please enter the day of your birth (1-29): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=18)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else if (birthDay[i]>18&&birthDay[i]<=29)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back1;
				}

			}

			else if (birthMonth[i]==3)
			{
				back2:
				printf("Please enter the day of your birth (1-31):\n");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back2;
				}

			}

			else if (birthMonth[i]==4)
			{
				back3:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back3;
				}

			}

			else if (birthMonth[i]==5)
			{
				back4:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is EMERALD.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is EMERALD.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back4;
				}

			}

			else if (birthMonth[i]==6)
			{
				back5:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back5;
				}

			}

			else if (birthMonth[i]==7)
			{
				back6:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back6;
				}

			}

			else if (birthMonth[i]==8)
			{
				back7:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthMonth[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back7;
				}

			}

			else if (birthMonth[i]==9)
			{
				back8:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back8;
				}

			}

			else if (birthMonth[i]==10)
			{
				back9:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}
				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back9;
				}

			}

			else if (birthMonth[i]==11)
			{
				back10:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is TOPAZ.\n");
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TOPAZ.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back10;
				}

			}

			else if (birthMonth[i]==12)
			{
				back11:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back11;
				}

			}
			else
			{
				printf("Wrong month input.Please enter again.\n");
				goto skip;
			}

		}

		else if((opt=='N')||(opt=='n'))
		{
			i=SIZE;
		}

		else
		{
			printf("Invalid Input.Please try to enter again.\n");
			goto beginning;
		}

	}
	return 0;

}

int chineseYear()
{
	if (birthYear[i]==1992||birthYear[i]==1980||birthYear[i]==2004)
		printf("You are born in the Chinese year of the MONKEY.\n");
	else if (birthYear[i]==1993||birthYear[i]==1981||birthYear[i]==2005)
		printf("You are born in the Chinese year of the ROOSTER.\n");
	else if (birthYear[i]==1994||birthYear[i]==1982||birthYear[i]==1970||birthYear[i]==2006)
		printf("You are born in the Chinese year of the DOG.\n");
	else if (birthYear[i]==1995||birthYear[i]==1971||birthYear[i]==1983||birthYear[i]==2007)
		printf("You are born in the Chinese year of the BOAR.\n");
	else if (birthYear[i]==1996||birthYear[i]==1984||birthYear[i]==1972||birthYear[i]==2008)
		printf("You are born in the Chinese year of the RAT.\n");
	else if (birthYear[i]==1997||birthYear[i]==1985||birthYear[i]==1973)
		printf("You are born in the Chinese year of the OX.\n");
	else if (birthYear[i]==1998||birthYear[i]==1986||birthYear[i]==1974)
		printf("You are born in the Chinese year of the TIGER.\n");
	else if (birthYear[i]==1975||birthYear[i]==1999||birthYear[i]==1987)
		printf("You are born in the Chinese year of the RABBIT.\n");
	else if (birthYear[i]==1976||birthYear[i]==2000||birthYear[i]==1988)
		printf("You are born in the Chinese year of the DRAGON.\n");
	else if (birthYear[i]==1977||birthYear[i]==2001||birthYear[i]==1989)
		printf("You are born in the Chinese year of the SNAKE.\n");
	else if (birthYear[i]==2002||birthYear[i]==1978||birthYear[i]==1990)
		printf("You are born in the Chinese year of the HORSE.\n");
	else if (birthYear[i]==2003||birthYear[i]==1979||birthYear[i]==1991)
		printf("You are born in the Chinese year of the RAM.\n");
	return 0;
}

int calAge(int currentYear,int currentMonth,int currentDay,int birthYear,int birthMonth,int birthDay)
{
		years=currentYear-birthYear;
		if((birthMonth>currentMonth)||((birthMonth==currentMonth)&&(birthDay>currentDay)))
		{
			years=years-1;
		}

		months=currentMonth-birthMonth;
		if(birthDay>currentDay)
		{
			months=months-1;
		}

		days=currentDay-birthDay;
		if(birthDay>currentDay)
		{
			days=(currentDay+30)-birthDay;
		}

		printf("You are %d years, %d months, %d days old.\n",years,months,days);
return 0;
}

here is the second round of input:


#################################
##### #Birthday Calculator Beta Version #####
################################
Enter Birthday Details For User #2?(Y/N): Invalid Input.Please try to enter again.
Enter Birthday Details For User #2?(Y/N):

Just clear the input buffer before you take the next input...

Do this...

char ch;
printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
while((ch = getchar())!= EOF && ch != '\n');
scanf("%c",&opt);

Why do we have to clear the input buffer, cause there will be a '\n' in the buffer once you press "enter" after entering anything... so next time when scanf comes around looking for another character it will find '\n' in the buffer and takes it and goes happily with that... which we dont want... so just clear the input buffer...

Just clear the input buffer before you take the next input...

Do this...

char ch;
printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
while((ch = getchar())!= EOF && ch != '\n');
scanf("%c",&opt);
#include <stdio.h>
#include <string.h>
#define SIZE 100

int chineseYear();
int calAge();
int i,birthYear[SIZE], birthMonth[SIZE], birthDay[SIZE],currentYear[SIZE],currentMonth[SIZE],currentDay[SIZE];
char opt,name[SIZE][20];

	int years;
	int months;
	int days;
	

int main(int argc, char **argv)
{
	char ch;	

	for(i=0;i<SIZE;i++)
	{
		printf("############################################\n");
		printf("##### Birthday Calculator Beta Version #####\n");
		printf("############################################\n");
		printf("\n");

		beginning:
		
		printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
		while((ch = getchar())!= EOF && ch != '\n');
		scanf("%c",&opt);

		if((opt=='Y')||(opt=='y'))
		{
			printf("Please enter your name: ");
			scanf("%s",name[i]);

			start:
			printf("Please enter current year: ");
			scanf("%d",&currentYear[i]);

			month:
			printf("Please enter current month: ");
			scanf("%d",&currentMonth[i]);
			if(currentMonth[i]<1||currentMonth[i]>12)
			{
				printf("Wrong month input.Please enter again.\n");
				goto month;
			}

			day:
			printf("Please enter current day: ");
			scanf("%d",&currentDay[i]);
			if(currentDay[i]<1||currentDay[i]>31)
			{
				printf("Wrong day input.Please enter again.\n");
				goto day;
			}

			printf("Please enter the year of your birth (1908-2008): ");
			scanf("%d",&birthYear[i]);

			if (birthYear[i]<1908||birthYear[i]>2008)
			{
				printf("Wrong year input.Please enter again.\n");
				goto start;
			}

			skip:
			printf("Please enter the month of your birth (1-12): ");
			scanf("%d",&birthMonth[i]);

			if (birthMonth[i]==1)
			{
				back:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);
				printf("\n");

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is GARNET.\n");
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is GARNET.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back;
				}

			}

			else if (birthMonth[i]==2)
			{
				back1:
				printf("Please enter the day of your birth (1-29): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=18)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else if (birthDay[i]>18&&birthDay[i]<=29)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back1;
				}

			}

			else if (birthMonth[i]==3)
			{
				back2:
				printf("Please enter the day of your birth (1-31):\n");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back2;
				}

			}

			else if (birthMonth[i]==4)
			{
				back3:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back3;
				}

			}

			else if (birthMonth[i]==5)
			{
				back4:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is EMERALD.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is EMERALD.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back4;
				}

			}

			else if (birthMonth[i]==6)
			{
				back5:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back5;
				}

			}

			else if (birthMonth[i]==7)
			{
				back6:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back6;
				}

			}

			else if (birthMonth[i]==8)
			{
				back7:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthMonth[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back7;
				}

			}

			else if (birthMonth[i]==9)
			{
				back8:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back8;
				}

			}

			else if (birthMonth[i]==10)
			{
				back9:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}
				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back9;
				}

			}

			else if (birthMonth[i]==11)
			{
				back10:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is TOPAZ.\n");
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TOPAZ.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back10;
				}

			}

			else if (birthMonth[i]==12)
			{
				back11:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back11;
				}

			}
			else
			{
				printf("Wrong month input.Please enter again.\n");
				goto skip;
			}

		}

		else if((opt=='N')||(opt=='n'))
		{
			i=SIZE;
		}

		else
		{
			printf("Invalid Input.Please try to enter again.\n");
			goto beginning;
		}

	}
	return 0;

}

int chineseYear()
{
	if (birthYear[i]==1992||birthYear[i]==1980||birthYear[i]==2004)
		printf("You are born in the Chinese year of the MONKEY.\n");
	else if (birthYear[i]==1993||birthYear[i]==1981||birthYear[i]==2005)
		printf("You are born in the Chinese year of the ROOSTER.\n");
	else if (birthYear[i]==1994||birthYear[i]==1982||birthYear[i]==1970||birthYear[i]==2006)
		printf("You are born in the Chinese year of the DOG.\n");
	else if (birthYear[i]==1995||birthYear[i]==1971||birthYear[i]==1983||birthYear[i]==2007)
		printf("You are born in the Chinese year of the BOAR.\n");
	else if (birthYear[i]==1996||birthYear[i]==1984||birthYear[i]==1972||birthYear[i]==2008)
		printf("You are born in the Chinese year of the RAT.\n");
	else if (birthYear[i]==1997||birthYear[i]==1985||birthYear[i]==1973)
		printf("You are born in the Chinese year of the OX.\n");
	else if (birthYear[i]==1998||birthYear[i]==1986||birthYear[i]==1974)
		printf("You are born in the Chinese year of the TIGER.\n");
	else if (birthYear[i]==1975||birthYear[i]==1999||birthYear[i]==1987)
		printf("You are born in the Chinese year of the RABBIT.\n");
	else if (birthYear[i]==1976||birthYear[i]==2000||birthYear[i]==1988)
		printf("You are born in the Chinese year of the DRAGON.\n");
	else if (birthYear[i]==1977||birthYear[i]==2001||birthYear[i]==1989)
		printf("You are born in the Chinese year of the SNAKE.\n");
	else if (birthYear[i]==2002||birthYear[i]==1978||birthYear[i]==1990)
		printf("You are born in the Chinese year of the HORSE.\n");
	else if (birthYear[i]==2003||birthYear[i]==1979||birthYear[i]==1991)
		printf("You are born in the Chinese year of the RAM.\n");
	return 0;
}

int calAge(int currentYear,int currentMonth,int currentDay,int birthYear,int birthMonth,int birthDay)
{
		years=currentYear-birthYear;
		if((birthMonth>currentMonth)||((birthMonth==currentMonth)&&(birthDay>currentDay)))
		{
			years=years-1;
		}

		months=currentMonth-birthMonth;
		if(birthDay>currentDay)
		{
			months=months-1;
		}

		days=currentDay-birthDay;
		if(birthDay>currentDay)
		{
			days=(currentDay+30)-birthDay;
		}

		printf("You are %d years, %d months, %d days old.\n",years,months,days);
return 0;
}

it goes wrong during the execution:

##### Birthday Calculator Beta Version #####
Enter Birthday Details For User #1? (Y/N): y
_

After i entered y then press ENTER it comes out nothing...
i tried to arrange these statements in this way but 2 errors appeared.
char ch;
printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
while((ch = getchar())!= EOF && ch != '\n');
scanf("%c",&opt);

so i changed it to another way that cause no error.

mmm... sorry... the place where we put is wrong... when the program is first executed there will not be anything in the buffer... so this will wait for something like that...
probably you can put that piece of code at the end of for loop... so that after everything is entered we can clear the buffer...

int main(){
...
  for(){
       ...
       while((ch = getchar())!= EOF && ch != '\n');
  }
  return 0;
}

mmm... sorry... the place where we put is wrong... when the program is first executed there will not be anything in the buffer... so this will wait for something like that...
probably you can put that piece of code at the end of for loop... so that after everything is entered we can clear the buffer...

int main(){
...
  for(){
       ...
       while((ch = getchar())!= EOF && ch != '\n');
  }
  return 0;
}

im sorry to tell u that ...
the problem is still the same,but... :(the following is for the second round input)

##### Birthday Calculator Beta Version #####
Enter Birthday Details For User #2? (Y/N): Invalid Input.Please try again.
Enter Birthday Details For User #2? (Y/N):

here is the coding:

#include <stdio.h>
#include <string.h>
#define SIZE 100

int chineseYear();
int calAge();
int i,birthYear[SIZE], birthMonth[SIZE], birthDay[SIZE],currentYear[SIZE],currentMonth[SIZE],currentDay[SIZE];
char opt,name[SIZE][20];

	int years;
	int months;
	int days;
	

int main(int argc, char **argv)
{
	char ch;	

	for(i=0;i<SIZE;i++)
	{
		printf("############################################\n");
		printf("##### Birthday Calculator Beta Version #####\n");
		printf("############################################\n");
		printf("\n");

		beginning:
		
		printf("Enter Birthday Details For User #%d? (Y/N): ",i+1);
		scanf("%c",&opt);

		if((opt=='Y')||(opt=='y'))
		{
			printf("Please enter your name: ");
			scanf("%s",name[i]);

			start:
			printf("Please enter current year: ");
			scanf("%d",&currentYear[i]);

			month:
			printf("Please enter current month: ");
			scanf("%d",&currentMonth[i]);
			if(currentMonth[i]<1||currentMonth[i]>12)
			{
				printf("Wrong month input.Please enter again.\n");
				goto month;
			}

			day:
			printf("Please enter current day: ");
			scanf("%d",&currentDay[i]);
			if(currentDay[i]<1||currentDay[i]>31)
			{
				printf("Wrong day input.Please enter again.\n");
				goto day;
			}

			printf("Please enter the year of your birth (1908-2008): ");
			scanf("%d",&birthYear[i]);

			if (birthYear[i]<1908||birthYear[i]>2008)
			{
				printf("Wrong year input.Please enter again.\n");
				goto start;
			}

			skip:
			printf("Please enter the month of your birth (1-12): ");
			scanf("%d",&birthMonth[i]);

			if (birthMonth[i]==1)
			{
				back:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);
				printf("\n");

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is GARNET.\n");
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d January %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is GARNET.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back;
				}

			}

			else if (birthMonth[i]==2)
			{
				back1:
				printf("Please enter the day of your birth (1-29): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=18)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an AQUARIUS.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else if (birthDay[i]>18&&birthDay[i]<=29)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d February %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AMETHYST.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back1;
				}

			}

			else if (birthMonth[i]==3)
			{
				back2:
				printf("Please enter the day of your birth (1-31):\n");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a PISCES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d March %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is AQUAMARINE or BLOODSTONE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back2;
				}

			}

			else if (birthMonth[i]==4)
			{
				back3:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=19)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are an ARIES.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else if (birthDay[i]>19&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d April %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is DIAMOND.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back3;
				}

			}

			else if (birthMonth[i]==5)
			{
				back4:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a TAURUS.\n");
					printf("Your BirthStone is EMERALD.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d May %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is EMERALD.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back4;
				}

			}

			else if (birthMonth[i]==6)
			{
				back5:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=20)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a GEMINI.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>20&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d June %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is PEARL, ALEXANDRITE or MOONSTONE.\n");
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back5;
				}

			}

			else if (birthMonth[i]==7)
			{
				back6:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CANCER.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d July %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is RUBY.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back6;
				}

			}

			else if (birthMonth[i]==8)
			{
				back7:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthMonth[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LEO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d August %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is PERIDOT or SARDONYX.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back7;
				}

			}

			else if (birthMonth[i]==9)
			{
				back8:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a VIRGO.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else if (birthDay[i]>22&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d September %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is SAPPHIRE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back8;
				}

			}

			else if (birthMonth[i]==10)
			{
				back9:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=22)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a LIBRA.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}
				else if (birthDay[i]>22&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d October %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is OPAL or TOURMALINE.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back9;
				}

			}

			else if (birthMonth[i]==11)
			{
				back10:
				printf("Please enter the day of your birth (1-30): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SCORPIO.\n");
					printf("Your BirthStone is TOPAZ.\n");
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=30)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d November %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TOPAZ.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back10;
				}

			}

			else if (birthMonth[i]==12)
			{
				back11:
				printf("Please enter the day of your birth (1-31): ");
				scanf("%d",&birthDay[i]);

				if (birthDay[i]<=21)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a SAGITARIUS.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else if (birthDay[i]>21&&birthDay[i]<=31)
				{
					printf("\n%s,your birthday details:\n",name[i]); 
					printf("Your are born on %d December %d.\n",birthDay[i],birthYear[i]);
					calAge(currentYear[i],currentMonth[i],currentDay[i],birthYear[i],birthMonth[i],birthDay[i]);
					chineseYear();
					printf("You are a CAPRICORN.\n");
					printf("Your BirthStone is TURQUOISE OR ZIRCON.\n");					
					printf("\n");
				}

				else
				{
					printf("Invalid day.Please enter again.\n");
					goto back11;
				}

			}
			else
			{
				printf("Wrong month input.Please enter again.\n");
				goto skip;
			}

		}

		else if((opt=='N')||(opt=='n'))
		{
			i=SIZE;
		}

		else
		{
			printf("Invalid Input.Please try to enter again.\n");
			goto beginning;
		}

	}
	while((ch = getchar())!= EOF && ch != '\n');
	return 0;

}

int chineseYear()
{
	if (birthYear[i]==1992||birthYear[i]==1980||birthYear[i]==2004)
		printf("You are born in the Chinese year of the MONKEY.\n");
	else if (birthYear[i]==1993||birthYear[i]==1981||birthYear[i]==2005)
		printf("You are born in the Chinese year of the ROOSTER.\n");
	else if (birthYear[i]==1994||birthYear[i]==1982||birthYear[i]==1970||birthYear[i]==2006)
		printf("You are born in the Chinese year of the DOG.\n");
	else if (birthYear[i]==1995||birthYear[i]==1971||birthYear[i]==1983||birthYear[i]==2007)
		printf("You are born in the Chinese year of the BOAR.\n");
	else if (birthYear[i]==1996||birthYear[i]==1984||birthYear[i]==1972||birthYear[i]==2008)
		printf("You are born in the Chinese year of the RAT.\n");
	else if (birthYear[i]==1997||birthYear[i]==1985||birthYear[i]==1973)
		printf("You are born in the Chinese year of the OX.\n");
	else if (birthYear[i]==1998||birthYear[i]==1986||birthYear[i]==1974)
		printf("You are born in the Chinese year of the TIGER.\n");
	else if (birthYear[i]==1975||birthYear[i]==1999||birthYear[i]==1987)
		printf("You are born in the Chinese year of the RABBIT.\n");
	else if (birthYear[i]==1976||birthYear[i]==2000||birthYear[i]==1988)
		printf("You are born in the Chinese year of the DRAGON.\n");
	else if (birthYear[i]==1977||birthYear[i]==2001||birthYear[i]==1989)
		printf("You are born in the Chinese year of the SNAKE.\n");
	else if (birthYear[i]==2002||birthYear[i]==1978||birthYear[i]==1990)
		printf("You are born in the Chinese year of the HORSE.\n");
	else if (birthYear[i]==2003||birthYear[i]==1979||birthYear[i]==1991)
		printf("You are born in the Chinese year of the RAM.\n");
	return 0;
}

int calAge(int currentYear,int currentMonth,int currentDay,int birthYear,int birthMonth,int birthDay)
{
		years=currentYear-birthYear;
		if((birthMonth>currentMonth)||((birthMonth==currentMonth)&&(birthDay>currentDay)))
		{
			years=years-1;
		}

		months=currentMonth-birthMonth;
		if(birthDay>currentDay)
		{
			months=months-1;
		}

		days=currentDay-birthDay;
		if(birthDay>currentDay)
		{
			days=(currentDay+30)-birthDay;
		}

		printf("You are %d years, %d months, %d days old.\n",years,months,days);
return 0;
}

Pal... put that while inside the for loop and not outside...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.