SlideShare une entreprise Scribd logo
1  sur  20
By :

Sushil Kumar Mishra

ECE – I (2nd Semester)

05311502809
/* This code is used to determine certain information by giving the

necessary data */




/*Author: Sushil Kumar Mishra */




#include <stdio.h>

#include <conio.h>

#include <string.h>

#include <DOS.h>

int menu();

int year, month, day;

void main()

{

start:

clrscr();

printf("Enter Year (1970-2010): ");

scanf("%d",&year);

if (year<1970||year>2010)

goto start;

skip:
printf("nEnter Your Month No. (1-12): ");

scanf("%d",&month);

if (month==1)

       {

       back:

       printf("nEnter Day (1-31): ");

       scanf("%d",&day);

       if (day<=19)

                {

                clrscr();

                printf("nnYour date of birth is: %d-%d-%d",month,day,year);

                menu();

                printf("nYou are born on the month of JANUARY.");

                printf("nYour BirthStone is GARNET.");

                printf("nYou are a CAPRICORN.");

                }

       else if (day>19&&day<=31)

                {

                clrscr();

                printf("nYour date of birth is: %d-%d-%d",month,day,year);

                menu();

                printf("nYou are born on the month of JANUARY.");

                printf("nYour BirthStone is GARNET.");

                printf("nYou are an AQUARIUS.");

                }
else

               {printf("nnEnter Correct Day!!!!!!");

               goto back;}

      }




else if (month==2)

      {

      back1:

      printf("nEnter Day (1-29):");

      scanf("%d",&day);

      if (day<=18)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of FEBRUARY.");

               printf("nYour BirthStone is AMETHYST.");

               printf("nYou are an AQUARIUS.");

               }

      else if (day>18&&day<=29)

               {

               clrscr();

               printf("nYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of FEBRUARY.");
printf("nYour BirthStone is AMETHYST.");

               printf("nYou are a PISCES.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back1;}

      }

else if (month==3)

      {

      back2:

      printf("nEnter Day (1-31):");

      scanf("%d",&day);

      if (day<=20)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of MARCH.");

               printf("nYour BirthStone is AQUAMARINE or BLOODSTONE.");

               printf("nYou are a PISCES.");

               }

      else if (day>20&&day<=31)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);
menu();

               printf("nYou are born on the month of MARCH.");

               printf("nYour BirthStone is AQUAMARINE or BLOODSTONE.");

               printf("nYou are an ARIES.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back2;}

      }

else if (month==4)

      {

      back3:

      printf("nEnter Day (1-30):");

      scanf("%d",&day);

      if (day<=19)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of APRIL.");

               printf("nYour BirthStone is DIAMOND.");

               printf("nYou are an ARIES.");

               }

      else if (day>19&&day<=30)

               {
clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of APRIL.");

               printf("nYour BirthStone is DIAMOND.");

               printf("nYou are a TAURUS.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back3;}

      }




else if (month==5)

      {

      back4:

      printf("nEnter Day (1-31):");

      scanf("%d",&day);

      if (day<=20)

               {

               clrscr();

               printf("nYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of MAY.");

               printf("nYour BirthStone is EMERALD.");

               printf("nYou are a TAURUS.");
}

      else if (day>20&&day<=31)

               {

               clrscr();

               printf("nYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of MAY.");

               printf("nYour BirthStone is EMERALD.");

               printf("nYou are a GEMINI.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back4;}

      }

else if (month==6)

      {

      back5:

      printf("nEnter Day (1-30):");

      scanf("%d",&day);

      if (day<=20)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of JUNE.");
printf("nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE.");

               printf("nYou are a GEMINI.");

               }

      else if (day>20&&day<=30)

               {

               clrscr();

               printf("nYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of JUNE.");

               printf("nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE.");

               printf("nYou are a CANCER.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back5;}

      }

else if (month==7)

      {

      back6:

      printf("nEnter Day (1-31):");

      scanf("%d",&day);

      if (day<=22)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);
menu();

               printf("nYou are born on the month of JULY.");

               printf("nYour BirthStone is RUBY.");

               printf("nYou are a CANCER.");

               }

      else if (day>22&&day<=30)

               {

               clrscr();

               printf("nYour date of birth is:%d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of JULY.");

               printf("nYour BirthStone is RUBY.");

               printf("nYou are a LEO.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back6;}

      }

else if (month==8)

      {

      back7:

      printf("nEnter Day (1-31):");

      scanf("%d",&day);

      if (day<=22)

               {
clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of AUGUST.");

               printf("nYour BirthStone is PERIDOT or SARDONYX.");

               printf("nYou are a LEO.");

               }

      else if (day>22&&day<=31)

               {

               clrscr();

               printf("nnYour date of birth is:%d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of AUGUST.");

               printf("nYour BirthStone is PERIDOT or SARDONYX.");

               printf("nYou are a VIRGO.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back7;}

      }

else if (month==9)

      {

      back8:

      printf("nEnter Day (1-30):");

      scanf("%d",&day);
if (day<=22)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of SEPTEMBER.");

               printf("nYour BirthStone is SAPPHIRE.");

               printf("nYou are a VIRGO.");

               }

      else if (day>22&&day<=30)

               {

               clrscr();

               printf("nnYour date of birth is: %d-%d-%d",month,day,year);

               menu();

               printf("nYou are born on the month of SEPTEMBER.");

               printf("nYour BirthStone is SAPPHIRE.");

               printf("nYou are a LIBRA.");

               }

      else

               {printf("nnEnter Correct Day!!!!!!");

               goto back8;}

      }

else if (month==10)

      {

      back9:
printf("nEnter Day (1-31):");

       scanf("%d",&day);

       if (day<=22)

              {

              clrscr();

              printf("nnYour date of birth is: %d-%d-%d",month,day,year);

              menu();

              printf("nYou are born on the month of OCTOBER.");

              printf("nYour BirthStone is OPAL or TOURMALINE.");

              printf("nYou are a LIBRA.");

              }

       else if (day>22&&day<=31)

              {

              clrscr();

              printf("nnYour date of birth is: %d-%d-%d",month,day,year);

              menu();

              printf("nYou are born on the month of OCTOBER.");

              printf("nYour BirthStone is OPAL or TOURMALINE.");

              printf("nYou are a SCORPIO.");

              }

       else

              {printf("nnEnter Correct Day!!!!!!");

              goto back9;}

       }

else if (month==11)
{

back10:

printf("nEnter Day (1-30):");

scanf("%d",&day);

if (day<=21)

       {

       clrscr();

       printf("nnYour date of birth is: %d-%d-%d",month,day,year);

       menu();

       printf("nYou are born on the month of NOVEMBER.");

       printf("nYour BirthStone is TOPAZ.");

       printf("nYou are a SCORPIO.");

       }

else if (day>21&&day<=30)

       {

       clrscr();

       printf("nnYour date of birth is: %d-%d-%d",month,day,year);

       menu();

       printf("nYou are born on the month of NOVEMBER.");

       printf("nYour BirthStone is TOPAZ.");

       printf("nYou are a SAGITARIUS.");

       }

else

       {printf("nnEnter Correct Day!!!!!!");

       goto back10;}
}




else if (month==12)

      {

      back11:

      printf("nEnter Day (1-31):");

      scanf("%d",&day);

      if (day<=21)

             {

             clrscr();

             printf("nnYour date of birth is: %d-%d-%d",month,day,year);

             menu();

             printf("nYou are born on the month of DECEMBER.");

             printf("nYour BirthStone is TURQUOISE OR ZIRCON.");

             printf("nYou are a SAGITARIUS.");

             }

      else if (day>21&&day<=31)

             {

             clrscr();

             printf("nnYour date of birth is: %d-%d-%d",month,day,year);

             menu();

             printf("nYou are born on the month of DECEMBER.");

             printf("nYour BirthStone is TURQUOISE OR ZIRCON.");

             printf("nYou are a CAPRICORN.");

             }
else

              {printf("nnEnter Correct Day!!!!!!");

              goto back11;}

       }

else

       {printf("nnEnter Correct No.!!!!!!");

       delay (99999999);

       delay (99999999);

       delay (99999999);

       delay (99999999);

       goto skip;}

getch();

}

int menu()           //Fuction//

{

if (year==1992||year==1980||year==2004)

       printf("nYou are born on the Year of the MONKEY.");

else if (year==1993||year==1981||year==2005)

       printf("nYou are born on the Year of the ROOSTER.");

else if (year==1994||year==2006||year==1982||year==1970)

       printf("nYou are born on the Year of the DOG.");

else if (year==1995||year==2007||year==1971||year==1983)

       printf("nYou are born on the Year of the BOAR.");

else if (year==1996||year==2008||year==1984||year==1972)

       printf("nYou are born on the Year of the RAT.");
else if (year==1997||year==2009||year==1985||year==1973)

      printf("nYou are born on the Year of the OX.");

else if (year==1998||year==2010||year==1986||year==1974)

      printf("nYou are born on the Year of the TIGER.");

else if (year==1975||year==1999||year==1987)

      printf("nYou are born on the Year of the RABBIT.");

else if (year==1976||year==2000||year==1988)

      printf("nYou are born on the Year of the DRAGON.");

else if (year==1977||year==2001||year==1989)

      printf("nYou are born on the Year of the SNAKE.");

else if (year==2002||year==1978||year==1990)

      printf("nYou are born on the Year of the HORSE.");

else if (year==2003||year==1979||year==1991)

      printf("nYou are born on the Year of the RAM.");

return;

}
Mythological calender using C++
Mythological calender using C++
Mythological calender using C++

Contenu connexe

Plus de Sushil Mishra

Trigger and cursor program using sql
Trigger and cursor program using sqlTrigger and cursor program using sql
Trigger and cursor program using sql
Sushil Mishra
 
microprocessor 8086 lab manual !!
microprocessor 8086 lab manual !!microprocessor 8086 lab manual !!
microprocessor 8086 lab manual !!
Sushil Mishra
 

Plus de Sushil Mishra (13)

Opt sim manual
Opt sim manualOpt sim manual
Opt sim manual
 
Consumer electronics lab manual
Consumer electronics lab manualConsumer electronics lab manual
Consumer electronics lab manual
 
Summer training at Doordarshan presentation
Summer training at Doordarshan presentationSummer training at Doordarshan presentation
Summer training at Doordarshan presentation
 
List of microcontroller 8051 projects
List of microcontroller 8051 projectsList of microcontroller 8051 projects
List of microcontroller 8051 projects
 
Sequence Diagram of Hotel Management System
Sequence Diagram of Hotel Management SystemSequence Diagram of Hotel Management System
Sequence Diagram of Hotel Management System
 
Trigger and cursor program using sql
Trigger and cursor program using sqlTrigger and cursor program using sql
Trigger and cursor program using sql
 
c-programming-using-pointers
c-programming-using-pointersc-programming-using-pointers
c-programming-using-pointers
 
microprocessor 8086 lab manual !!
microprocessor 8086 lab manual !!microprocessor 8086 lab manual !!
microprocessor 8086 lab manual !!
 
Tachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor controlTachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor control
 
Report on industrial training at DDK, Mandi House, Delhi -01
Report on industrial training at DDK, Mandi House, Delhi -01Report on industrial training at DDK, Mandi House, Delhi -01
Report on industrial training at DDK, Mandi House, Delhi -01
 
Quiz using C++
Quiz using C++Quiz using C++
Quiz using C++
 
Laser, its working & hazards
Laser, its working & hazardsLaser, its working & hazards
Laser, its working & hazards
 
Designing a notch filter using orcad 15.3
Designing a notch filter using orcad 15.3Designing a notch filter using orcad 15.3
Designing a notch filter using orcad 15.3
 

Dernier

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Mythological calender using C++

  • 1. By : Sushil Kumar Mishra ECE – I (2nd Semester) 05311502809
  • 2. /* This code is used to determine certain information by giving the necessary data */ /*Author: Sushil Kumar Mishra */ #include <stdio.h> #include <conio.h> #include <string.h> #include <DOS.h> int menu(); int year, month, day; void main() { start: clrscr(); printf("Enter Year (1970-2010): "); scanf("%d",&year); if (year<1970||year>2010) goto start; skip:
  • 3. printf("nEnter Your Month No. (1-12): "); scanf("%d",&month); if (month==1) { back: printf("nEnter Day (1-31): "); scanf("%d",&day); if (day<=19) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of JANUARY."); printf("nYour BirthStone is GARNET."); printf("nYou are a CAPRICORN."); } else if (day>19&&day<=31) { clrscr(); printf("nYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of JANUARY."); printf("nYour BirthStone is GARNET."); printf("nYou are an AQUARIUS."); }
  • 4. else {printf("nnEnter Correct Day!!!!!!"); goto back;} } else if (month==2) { back1: printf("nEnter Day (1-29):"); scanf("%d",&day); if (day<=18) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of FEBRUARY."); printf("nYour BirthStone is AMETHYST."); printf("nYou are an AQUARIUS."); } else if (day>18&&day<=29) { clrscr(); printf("nYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of FEBRUARY.");
  • 5. printf("nYour BirthStone is AMETHYST."); printf("nYou are a PISCES."); } else {printf("nnEnter Correct Day!!!!!!"); goto back1;} } else if (month==3) { back2: printf("nEnter Day (1-31):"); scanf("%d",&day); if (day<=20) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of MARCH."); printf("nYour BirthStone is AQUAMARINE or BLOODSTONE."); printf("nYou are a PISCES."); } else if (day>20&&day<=31) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year);
  • 6. menu(); printf("nYou are born on the month of MARCH."); printf("nYour BirthStone is AQUAMARINE or BLOODSTONE."); printf("nYou are an ARIES."); } else {printf("nnEnter Correct Day!!!!!!"); goto back2;} } else if (month==4) { back3: printf("nEnter Day (1-30):"); scanf("%d",&day); if (day<=19) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of APRIL."); printf("nYour BirthStone is DIAMOND."); printf("nYou are an ARIES."); } else if (day>19&&day<=30) {
  • 7. clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of APRIL."); printf("nYour BirthStone is DIAMOND."); printf("nYou are a TAURUS."); } else {printf("nnEnter Correct Day!!!!!!"); goto back3;} } else if (month==5) { back4: printf("nEnter Day (1-31):"); scanf("%d",&day); if (day<=20) { clrscr(); printf("nYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of MAY."); printf("nYour BirthStone is EMERALD."); printf("nYou are a TAURUS.");
  • 8. } else if (day>20&&day<=31) { clrscr(); printf("nYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of MAY."); printf("nYour BirthStone is EMERALD."); printf("nYou are a GEMINI."); } else {printf("nnEnter Correct Day!!!!!!"); goto back4;} } else if (month==6) { back5: printf("nEnter Day (1-30):"); scanf("%d",&day); if (day<=20) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of JUNE.");
  • 9. printf("nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE."); printf("nYou are a GEMINI."); } else if (day>20&&day<=30) { clrscr(); printf("nYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of JUNE."); printf("nYour BirthStone is PEARL, ALEXANDRITE or MOONSTONE."); printf("nYou are a CANCER."); } else {printf("nnEnter Correct Day!!!!!!"); goto back5;} } else if (month==7) { back6: printf("nEnter Day (1-31):"); scanf("%d",&day); if (day<=22) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year);
  • 10. menu(); printf("nYou are born on the month of JULY."); printf("nYour BirthStone is RUBY."); printf("nYou are a CANCER."); } else if (day>22&&day<=30) { clrscr(); printf("nYour date of birth is:%d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of JULY."); printf("nYour BirthStone is RUBY."); printf("nYou are a LEO."); } else {printf("nnEnter Correct Day!!!!!!"); goto back6;} } else if (month==8) { back7: printf("nEnter Day (1-31):"); scanf("%d",&day); if (day<=22) {
  • 11. clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of AUGUST."); printf("nYour BirthStone is PERIDOT or SARDONYX."); printf("nYou are a LEO."); } else if (day>22&&day<=31) { clrscr(); printf("nnYour date of birth is:%d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of AUGUST."); printf("nYour BirthStone is PERIDOT or SARDONYX."); printf("nYou are a VIRGO."); } else {printf("nnEnter Correct Day!!!!!!"); goto back7;} } else if (month==9) { back8: printf("nEnter Day (1-30):"); scanf("%d",&day);
  • 12. if (day<=22) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of SEPTEMBER."); printf("nYour BirthStone is SAPPHIRE."); printf("nYou are a VIRGO."); } else if (day>22&&day<=30) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of SEPTEMBER."); printf("nYour BirthStone is SAPPHIRE."); printf("nYou are a LIBRA."); } else {printf("nnEnter Correct Day!!!!!!"); goto back8;} } else if (month==10) { back9:
  • 13. printf("nEnter Day (1-31):"); scanf("%d",&day); if (day<=22) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of OCTOBER."); printf("nYour BirthStone is OPAL or TOURMALINE."); printf("nYou are a LIBRA."); } else if (day>22&&day<=31) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of OCTOBER."); printf("nYour BirthStone is OPAL or TOURMALINE."); printf("nYou are a SCORPIO."); } else {printf("nnEnter Correct Day!!!!!!"); goto back9;} } else if (month==11)
  • 14. { back10: printf("nEnter Day (1-30):"); scanf("%d",&day); if (day<=21) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of NOVEMBER."); printf("nYour BirthStone is TOPAZ."); printf("nYou are a SCORPIO."); } else if (day>21&&day<=30) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of NOVEMBER."); printf("nYour BirthStone is TOPAZ."); printf("nYou are a SAGITARIUS."); } else {printf("nnEnter Correct Day!!!!!!"); goto back10;}
  • 15. } else if (month==12) { back11: printf("nEnter Day (1-31):"); scanf("%d",&day); if (day<=21) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of DECEMBER."); printf("nYour BirthStone is TURQUOISE OR ZIRCON."); printf("nYou are a SAGITARIUS."); } else if (day>21&&day<=31) { clrscr(); printf("nnYour date of birth is: %d-%d-%d",month,day,year); menu(); printf("nYou are born on the month of DECEMBER."); printf("nYour BirthStone is TURQUOISE OR ZIRCON."); printf("nYou are a CAPRICORN."); }
  • 16. else {printf("nnEnter Correct Day!!!!!!"); goto back11;} } else {printf("nnEnter Correct No.!!!!!!"); delay (99999999); delay (99999999); delay (99999999); delay (99999999); goto skip;} getch(); } int menu() //Fuction// { if (year==1992||year==1980||year==2004) printf("nYou are born on the Year of the MONKEY."); else if (year==1993||year==1981||year==2005) printf("nYou are born on the Year of the ROOSTER."); else if (year==1994||year==2006||year==1982||year==1970) printf("nYou are born on the Year of the DOG."); else if (year==1995||year==2007||year==1971||year==1983) printf("nYou are born on the Year of the BOAR."); else if (year==1996||year==2008||year==1984||year==1972) printf("nYou are born on the Year of the RAT.");
  • 17. else if (year==1997||year==2009||year==1985||year==1973) printf("nYou are born on the Year of the OX."); else if (year==1998||year==2010||year==1986||year==1974) printf("nYou are born on the Year of the TIGER."); else if (year==1975||year==1999||year==1987) printf("nYou are born on the Year of the RABBIT."); else if (year==1976||year==2000||year==1988) printf("nYou are born on the Year of the DRAGON."); else if (year==1977||year==2001||year==1989) printf("nYou are born on the Year of the SNAKE."); else if (year==2002||year==1978||year==1990) printf("nYou are born on the Year of the HORSE."); else if (year==2003||year==1979||year==1991) printf("nYou are born on the Year of the RAM."); return; }