Created
January 31, 2017 22:25
-
-
Save sohnryang/942dcd06c09cde640305cb9d5be27aac to your computer and use it in GitHub Desktop.
scala for the impatient - writing countdown procedure
This file contains 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
def countdown(n: Int) { | |
for (i <- n to 0 by -1) println(i) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment