blob: 32d285cbb373c0e3d74f77c1dc40abb438798099 (
plain) (
tree)
|
|
Type in expressions to have them evaluated.
Type :help for more information.
scala> var s = 0
s: Int = 0
scala> for (i <- 1 to 10) {s += i}
scala> for (i <- 1 to 10) {s += i}
scala> for (i <- 1 to 10) {s += i}
scala> println(s)
165
scala> :quit
|