Created
November 26, 2018 12:48
-
-
Save dairdr/de67040af7a4754f5d3f35887b7d6461 to your computer and use it in GitHub Desktop.
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
| fun fezzBuzz() { | |
| for (i in 1..100) { | |
| if (i % 3 == 0 && i % 5 == 0) { | |
| println("FizBuzz") | |
| } else if (i % 3 == 0) { | |
| println("Fizz") | |
| } else if (i % 5 == 0) { | |
| println("Buzz") | |
| } else { | |
| println(i) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment