blob: 72ad898e90f69fb9f15f3fcf8f364b4ed39f0e91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|