Sunday, 10 December 2017

check your Zodiac In C

#include<stdio.h>
#include<conio.h>
int main()


{
int day,month,year;
printf("Enter Your Date of birth seperated by a space[Day-Month-Year]:\n");
scanf("%d",&day);
scanf("%d " ,&month);
scanf("%d",&year);
if(month==1)


{
if(day<=19)
printf("Your Star is Capricon");
else
printf("Your Star is Aquarius");


}
else if(month==2)


{
if(day<=18)
printf("Your Star is Aquarius");
else
printf("Your Star is Pisces");


}
else if(month==3)


{
if(day<=20)
printf("Your Star is Pisces");
else
printf("Your Star is Aries");


}
else if(month==4)


{
if(day<=19)
printf("Your Star is Aries");
else
printf("Your Star is Taurus");


}
else if(month==5)


{
if(day<=20)
printf("Your Star is Taurus");
else
printf("Your Star is Gemini");


}
else if(month==6)


{
if(day<=20)
printf("Your Star is Gemini");
else
printf("Your Star is Cancer");


}
else if(month==7)


{
if(day<=22)
printf("Your Star is Cancer");
else
printf("Your Star is Leo");


}
else if(month==8)


{
if(day<=22)
printf("Your Star is Leo");
else
printf("Your Star is Virgo");


}
else if(month==9)


{
if(day<=22)
printf("Your Star is Virgo");
else
printf("Your Star is Libra");


}
else if(month==10)


{
if(day<=22)
printf("Your Star is Libra");
else
printf("Your Star is Scorpio");


}
else if(month==11)


{
if(day<=21)
printf("Your Star is Scorpio");
else
printf("Your Star is Sagittarius");


}
else if(month==12)


{
if(day<=19)
printf("Your Star is Sagittarius");
else
printf("Your Star is Capricon");


}
else
printf("\nWRONG WRONG WRONG");

return 0;


}

0 comments:

Post a Comment

Tech UOG