Horoscope --Program in Tc That Shows Your Horoscope--

Only available on StudyMode
  • Pages : 19 (1298 words )
  • Download(s) : 87
  • Published : March 23, 2013
Open Document
Text Preview
#include

#include

main()

{

int m,choice,day,year;

char name,month;

start:

clrscr();

printf("Enter your name : ");

scanf("%s",&name);

printf("Enter your birthday (month day year): ");

scanf("%s %d %d",&month,&day,&year);

printf("\nDo you want to know your horoscope reading?\n\n\n");

printf("[1] Aquarius\n[2] Pisces\n[3] Aries\n[4] Taurus\n[5] Gemini\n[6] Cancer\n");

printf("[7] Leo\n[8] Virgo\n[9] Libra\n[10] Scorpio\n[11] Sagittarius\n[12] Capricorn\n\n\n");

printf("Press the number of your Zodiac Sign: ");

scanf("%d",&m);

switch(

m)

{

case 1:

clrscr();

{gotoxy (33,3);

printf(" AQUARIUS\n ");

printf(" (January 20-February18)\n\n ");

printf("\n You may feel at odds with the rest of the world now.");

printf("\n See if you can find a balance between spendingtime with your \n family and time alone.");

printf("\n\n\n Do you want to see the your \n\n Lucky Color? Number ?\n\n\nPress[1]Yes[2]No.\n\n\n");

scanf("%d",&choice);

if(choice==1)

printf("Your Lucky color is RED.\nYour Lucky Number is 3.\n\n");

else if(choice==2)

{

goto start;

}

else

{

clrscr();

printf("ERROR!!!");

}

break;

}

case 2:

clrscr();

{gotoxy (33,3);

printf(" PISCES\n ");

printf(" (February 29-March20)\n\n ");

printf("\n You have a warm and sensitive nature, and today");

printf("\n you could be feeling especially tuned in to feelings \n of others.");

printf("\n\n\n Do you want to see the your \n\n Lucky Color? Number ?\n\n\nPress[1]Yes[2]No.\n\n\n");

scanf("%d",&choice);

if(choice==1)

printf("Your Lucky color is BLUE.\nYour Lucky Number is 7.\n\n");

else if(choice==2)

{

goto start;

}

else

{

clrscr();

printf("ERROR!!!");

}

break;

}

case 3:

clrscr();

{gotoxy (33,3);

printf(" ARIES\n ");

printf(" (March 21-April 19)\n\n ");

printf("\n This may be a tricky day,");

printf("\n as yoe feel the pull of conflicting demands and desire.");

printf("\n\n\n Do you want to see the your \n\n Lucky Color? Number ?\n\n\nPress[1]Yes[2]No.\n\n\n");

scanf("%d",&choice);

if(choice==1)

printf("Your Lucky color is GREEN.\nYour Lucky Number is 10.\n\n");

else if(choice==2)

{

goto start;

}

else

{

clrscr();

printf("ERROR!!!");

}

break;

}

case 4:

clrscr();

{gotoxy (33,3);

printf(" TAURUS\n ");

printf(" (April 20-May 20)\n\n ");

printf("\n It doesn'tseem fair that your workload has increased these last few days.");

printf("\n Nevermind that you still have all of your normal task to do.");

printf("\n\n\n Do you want to see the your \n\n Lucky Color? Number ?\n\n\nPress[1]Yes[2]No.\n\n\n");

scanf("%d",&choice);

if (choice==1)

printf("Your Lucky color is CYAN.\nYour Lucky Number is 12.\n\n");

else if(choice==2)

{

goto start;

}

else

{

clrscr();

printf("ERROR!!!");

}

break;

}

case 5:

clrscr();

{gotoxy (33,3);

printf(" GEMINI\n ");

printf(" (March 21-June 21)\n\n ");

printf("\n You have been extremely busy these pat few months,");

printf("\n working extra hours at the school, \n then going out with friends late at night.");

printf("\n\n\n Do you want to see the your \n\n Lucky Color? Number ?\n\n\nPress[1]Yes[2]No.\n\n\n");...
tracking img