Scala While loop



examples/WhileLoop.scala
object WhileLoop {
    def main(args:Array[String]) {
        var cnt = 1
        while (cnt < 10) {
            cnt += 1
            println(cnt)
        }
        println("done")
    }
}