changeset 367 | e6ae724255a8 |
parent 366 | 1c829680503e |
child 384 | 6e1237691307 |
366:1c829680503e | 367:e6ae724255a8 |
---|---|
2 //================= |
2 //================= |
3 |
3 |
4 |
4 |
5 // String Interpolations |
5 // String Interpolations |
6 //======================= |
6 //======================= |
7 |
|
8 |
7 |
9 def cube(n: Int) : Int = n * n * n |
8 def cube(n: Int) : Int = n * n * n |
10 |
9 |
11 val n = 3 |
10 val n = 3 |
12 println("The cube of " + n + " is " + cube(n) + ".") |
11 println("The cube of " + n + " is " + cube(n) + ".") |