Skip to content

Instantly share code, notes, and snippets.

@kmuralidharan91
Last active July 9, 2019 16:23
Show Gist options
  • Save kmuralidharan91/6973da0ddba4876803002a0666c754f5 to your computer and use it in GitHub Desktop.
Save kmuralidharan91/6973da0ddba4876803002a0666c754f5 to your computer and use it in GitHub Desktop.
var integer = 3
switch integer {
case 4:
print("Four.")
fallthrough
case 3:
print("Three.")
fallthrough
case 2:
print("Two.")
fallthrough
case 1:
print("One.")
fallthrough
default:
print("Done.")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment