Skip to content

Instantly share code, notes, and snippets.

@asbubam
Last active December 16, 2015 08:58
Show Gist options
  • Save asbubam/5409442 to your computer and use it in GitHub Desktop.
Save asbubam/5409442 to your computer and use it in GitHub Desktop.
Euler scala Ex01
object Ex01 extends App {
var sum = 0
for (i <- 0 until 1000) {
if(i % 3 == 0 || i % 5 == 0) sum = sum + i
}
println(sum)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment