/*  Exploring Languages with Interpreters and Functional Programming
    Copyright (C) 2019, H. Conrad Cunningham
    Revised Imperative Counting Program in Scala

1234567890123456789012345678901234567890123456789012345678901234567890

2019-01-24: Revised from CountingImp.scala

*/

object CountingImp2 {

    def main(args: Array[String]) {
        var count =  0  // use type inference
	val maxc  = 10  // make val not var
	while (count <= maxc) {
		println(count)
		count = count + 1
	}
    }
 
}
