Does anyone know a source code for calculating Zodiac Sign using a given DoB

Thanks

yeah, about 12 'if / else if" conditional statements.

Wow !!! asking source code in Dani directly and that too at two places. I am SHOCKED !!!

here, i'll help you get started:

if (month == 4 && day > 20 || month == 5 && day < 21)
    strcpy(sign,"taurus");
else if (month == 5 && day > 20 || month == 6 && day < 21)
    strcpy(sign,"gemini");
// ... etcetera ...

now don't say no one never gave you nothin'

:P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.