hello sa inyo first years student ako sa BSIT... pa correct po ng correct please.. gumawa ng program na pag eninter mo ang iyong birth month at birth date, it will determine your zodiac sign. C program gamit ko sa TC... salamat
#include<stdio.h>
#include<conio.h>
main()
{
int month,date;
clrscr();
printf("\n Enter your birth month and birth date");
scanf("%d",&month,date);
if ((month == 1 && date >= 20)(month == 2 && date <=18))
printf("\n Your zodiac sign is AQUARIUS");
else if (( month == 2 && date >= 19)( month == 3 && date <= 20))
printf("\n Your zodiac sign is PISCES");
else if (( month == 3 && date >= 21)( month == 4 && date <= 19))
printf("\n Your zodiac sign is ARIES");
else if (( month == 4 && date >= 20)( month == 5 && date <= 20))
printf("\n Your zodiac sign is TAURUS");
else if (( month == 5 && date >= 21 )( month == 6 && date <= 20 ))
printf("\n Your zodiac sign is GEMINI");
else if (( month == 6 && date >= 21 )( month == 7 && date <= 22 ))
printf("\n Your zodiac sign is CANCER");
else if (( month == 7 && date <= 23 )( month == 8 && date <= 22))
printf("\n Your zodiac sign is LEO");
else if (( month == 8 && date >= 23 )( month == 9 && date <= 22 ))
printf("\n Your zodiac sign is VIRGO");
else if (( month == 9 && date >= 23 )( month == 10 && date <= 22))
printf("\n Your zodiac sign is LIBRA");
else if (( month == 10 && date >= 23 )( month == 11 && date <= 21))
printf("\n Your zodiac sign is SCORPIO");
else if (( month == 11 && date >= 22 )( month == 12 && date <= 21))
printf("\n Your zodiac sign is SAGUITTARIUS");
else if (( month == 12 && date >= 22 )( month == 1 && date <= 19 ))
printf("\n Your zodiac sign is CAPRICORN");
else
printf("\n INVALID INPUT");
getch();
return(0);
}
#include<stdio.h>
#include<conio.h>
main()
{
int month,date;
clrscr();
printf("\n Enter your birth month and birth date");
scanf("%d",&month,date);
if ((month == 1 && date >= 20)(month == 2 && date <=18))
printf("\n Your zodiac sign is AQUARIUS");
else if (( month == 2 && date >= 19)( month == 3 && date <= 20))
printf("\n Your zodiac sign is PISCES");
else if (( month == 3 && date >= 21)( month == 4 && date <= 19))
printf("\n Your zodiac sign is ARIES");
else if (( month == 4 && date >= 20)( month == 5 && date <= 20))
printf("\n Your zodiac sign is TAURUS");
else if (( month == 5 && date >= 21 )( month == 6 && date <= 20 ))
printf("\n Your zodiac sign is GEMINI");
else if (( month == 6 && date >= 21 )( month == 7 && date <= 22 ))
printf("\n Your zodiac sign is CANCER");
else if (( month == 7 && date <= 23 )( month == 8 && date <= 22))
printf("\n Your zodiac sign is LEO");
else if (( month == 8 && date >= 23 )( month == 9 && date <= 22 ))
printf("\n Your zodiac sign is VIRGO");
else if (( month == 9 && date >= 23 )( month == 10 && date <= 22))
printf("\n Your zodiac sign is LIBRA");
else if (( month == 10 && date >= 23 )( month == 11 && date <= 21))
printf("\n Your zodiac sign is SCORPIO");
else if (( month == 11 && date >= 22 )( month == 12 && date <= 21))
printf("\n Your zodiac sign is SAGUITTARIUS");
else if (( month == 12 && date >= 22 )( month == 1 && date <= 19 ))
printf("\n Your zodiac sign is CAPRICORN");
else
printf("\n INVALID INPUT");
getch();
return(0);
}