var currentSeason = "Winter"
func season(month: Int, name: inout String) {
switch month {
case 1...2:
name = "Winter âï¸"
case 3...6:
name = "Spring ð±"
case 7...9:
name = "Summer â±"
case 10...11:
name = "Autumn ð"
default:
name = "Unknown"
}
}
season(month: 4, name: ¤tSeason)
print(currentSeason) // Spring ð±
Comments