#include<iostream.h>
#include<conio.h>
int main()
{
int month;
cout<<"\nEnter Date: ";
cin>>date;
cout<<"\nEnter Month: ";
cin>>month;
cout<<"\n\n";
if(month<=1 && date>=20)
cout<<"Aquarius";
else if(month<=2 && date<=18)
cout<<"Aquarius";
else if(month<=2 && date>=19)
cout<<"Pices";
else if(month<=3 && date<=20)
cout<<"Pices";
else if(month<=3 && date>=21)
cout<<"Aries";
else if(month<=4 && date<=19)
cout<<"Aries";
else if(month<=4 && date>=20)
cout<<"Taurus";
else if(month<=5 && date<=20)
cout<<"Taurus";
else if(month<=5 && date>=21)
cout<<"Gemini";
else if(month<=6 && date<=20)
cout<<"Gemini";
else if(month<=6 && date>=21)
cout<<"Cancer";
else if(month<=7 && date<=22)
cout<<"Cancer";
else if(month<=7 && date>=23)
cout<<"Leo";
else if(month<=8 && date<=22)
cout<<"Leo";
else if(month<=8 && date>=23)
cout<<"Virgo";
else if(month<=9 && date<=22)
cout<<"Virgo";
else if(month<=9 && date>=23)
cout<<"Libra";
else if(month<=10 && date<=22)
cout<<"Libra";
else if(month<=10 && date>=23)
cout<<"Scorpio";
else if(month<=11 && date<=21)
cout<<"Scorpio";
else if(month<=11 && date>=22)
cout<<"Sagittarius";
else if(month<=12 && date<=21)
cout<<"Sagittarius";
else if(month<=12 && date>=22)
cout<<"Capricon";
else if(month<=1 && date<=19)
cout<<"Capricon";
else
cout<<"Invalid Month:";
getch();
}
No comments:
Post a Comment