var birthYear = 1992
if birthYear == 1992 || birthYear == 1980 || birthYear == 1968 {
println("You were born in the year of the monkey.")
} else if birthYear == 1991 || birthYear == 1979 || birthYear == 1967 {
println("You were born in the year of the goat")
} else {
println("You were born in some other animal's year.")
}
switch birthYear {
case 1992, 1980, 1968:
println("You were born in the year of the monkey.")
case 1991, 1979, 1967:
println("You were born in the year of the goat")
default:
println("You were born in some other animal's year.")
}