Simple xor

Report a typo

Given two int variables n1 and n2. What is the value of the result variable?

val n1 = 9
val n2 = 6
        
val result = n1 xor n2
Enter a number
___

Create a free account to access the full topic