Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for (i <- 1 to 8 by 1) println(i)
println("------------")
for (i <- 1 to 8 by 2) println(i)
println("------------")
for (i <- 1 to 8 by 3) println(i)
println("------------")
for (i <- 1 to 8 by 4) println(i)
println("------------")
for (i <- 1 to 8 by 5) println(i)
println("------------")
for (i <- 1 to 8 by 6) println(i)
println("------------")
for (i <- 1 to 8 by 7) println(i)
println("------------")
for (i <- 1 to 8 by 8) println(i)
println("------------")
for (i <- 1 to 8) println(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.