wsheets/wsh01.scala
changeset 444 e6df3c7ff132
parent 441 5266495f4aad
equal deleted inserted replaced
443:64bca78e27f0 444:e6df3c7ff132
    20 
    20 
    21 
    21 
    22 // Task 2
    22 // Task 2
    23 
    23 
    24 val z = 42
    24 val z = 42
    25 z = z + 1 .       // error
    25 z = z + 1         // error
    26 val x = 2 * z
    26 val x = 2 * z
    27 val z = 466       // old z not accessible anymore
    27 val z = 466       // old z not accessible anymore
    28 println(x)
    28 println(x)
    29 
    29 
    30 
    30