Last active
August 29, 2015 14:17
-
-
Save joanmolinas/47a7136db579a27eb1ac to your computer and use it in GitHub Desktop.
HackerSchool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 1...100 { | |
switch (i) { | |
case let x where x%15 == 0: | |
println("CracklePop") | |
case let x where x%3 == 0: | |
println("Crackle") | |
case let x where x%5 == 0: | |
println("Pop") | |
default: | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment