Answers for "switch case in swift language"

2

switch case in swift language

let liveAlbums = 2

switch liveAlbums {
case 0:
    print("You're just starting out")

case 1:
    print("You just released iTunes Live From SoHo")

case 2:
    print("You just released Speak Now World Tour")

default:
    print("Have you done something new?")
}
Posted by: Guest on February-24-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language