Example 17: Display Zodiac Sign
Learn how to print a Zodiac sign based on your date of birth.
We'll cover the following...
We'll cover the following...
Problem
Write a program that receives the month and date of birth as input and prints the corresponding Zodiac sign based on the following table:
| Zodiac Sign | From – To |
|---|---|
| Capricorn | December 22 – January 19 |
| Aquarius | January 20 – February 17 |
| Pisces |