kotlin swithc

when (x) {
    1 -> print("x == 1")
    2 -> print("x == 2")
    else -> { 
        print("x no es 1 o 2")
    }
}
Unsightly Unicorn