Created
July 11, 2018 02:45
-
-
Save mhoffman/0c565f2ccc2b33961b9ea5785be8abd9 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env scala -savecompiled | |
for (i <- 1 to 15) { | |
if (i % 15 == 0 ){ | |
println("FizzBuzz") | |
} else if (i % 5 == 0) { | |
println("Buzz") | |
} else if (i % 3 == 0) { | |
println("Fizz") | |
} else { | |
println(i) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment