Swift - Control Flow
You want to print numbers 1 through 3 using a Swift
switch statement with fallthrough. Which code snippet correctly implements this?let number = 1
switch number {
case 1:
print("1")
fallthrough
case 2:
print("2")
fallthrough
case 3:
print("3")
default:
break
}