Swift - Control Flow
Find the error in this Swift switch statement:
let number = 3
switch number {
case 1, 2
print("One or Two")
case 3:
print("Three")
default:
print("Other")
}Find the error in this Swift switch statement:
let number = 3
switch number {
case 1, 2
print("One or Two")
case 3:
print("Three")
default:
print("Other")
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions