import java.util.Scanner; public class Horoscope { public static void main(String[] args) { System.out.println("Enter you birth month:"); Scanner sc = new Scanner(System.in); String mon = sc.nextLine(); System.out.println("Enter you birth day"); int day = sc.nextInt(); String sign = ""; if((mon == "January" && day >= 21) || (mon == "February" && day <= 18)) { sign = "Aquarius"; } else if((mon == "February" && day >= 19) || (mon == "March" && day <= 20)) { sign = "Pisces"; } else if((mon == "March" && day >= 21) || (mon == "April" && day <= 20)) { sign = "Aries"; } else if((mon == "April" && day >= 21) || (mon == "May" && day <= 20)) { sign = "Taurus"; } else if((mon == "May" && day >= 21) || (mon == "June" && day <= 21)) { sign = "Gemini"; } else if((mon == "June" && day >= 22) || (mon == "July" && day <= 22)) { sign = "Cancer"; } else if((mon == "July" && day >= 23) || (mon == "August" && day <= 23)) { sign = "Leo"; } else if((mon == "August" && day >= 24) || (mon == "September" && day <= 23)) { sign = "Virgo"; } else if((mon == "September" && day >= 24) || (mon == "October" && day <= 23)) { sign = "Libra"; } else if((mon == "October" && day >= 24) || (mon == "November" && day <= 22)) { sign = "Scorpio"; } else if((mon == "Nomember" && day >= 23) || (mon == "December" && day <= 21)) { sign = "Sagittarius"; } else{ sign = "Capricorn"; } System.out.println(sign); } }