### My First Scala Program

A while back for my birthday, I got the Odersky Programming in Scala book and today I finally got a chance to crack it and play around. I had been interested in trying to pick up one of the new wave of dynamic JVM langagues like Groovy, JRuby, or Jython and had settled on Scala. I had read a suggestion that Project Euler would make for a fertile playground of test problems to learn on, and having already done the first several in Java that rang true for me. So, here is my overly complicated solution to the simple first problem..

`````` //If we list all the natural numbers below 10 that are multiples of 3
//or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
//Find the sum of all the multiples of 3 or 5 below 1000.

import scala.actors._

var sum = 0
def act() = {
react {
case (num: Int) =>
sum += num
act()
case "REPORT" =>
Console.println("Total = " + sum);
}
}
}

object ProblemOneRunner {
def main(args: Array[String]): Unit = {
for(i <- 1 to 999) {
if(i % 3 == 0 || i % 5 == 0 ) {
}
}