Answers for "swtich kotlin"

0

kotlin swithc

when (x) {
    1 -> print("x == 1")
    2 -> print("x == 2")
    else -> { 
        print("x no es 1 o 2")
    }
}
Posted by: Guest on October-15-2021

Browse Popular Code Answers by Language