Created
March 10, 2016 22:01
-
-
Save evancasey/5d44d34bc9ecc0241d1b to your computer and use it in GitHub Desktop.
CracklePop
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
| (1 to 100).foreach { x => | |
| if (x % 3 == 0 && x % 5 ==0) println("CracklePop") | |
| else if (x % 3 == 0) println("Crackle") | |
| else if (x % 5 == 0) println("Pop") | |
| else println(x) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment