2808 explained code solutions for 75 technologies


golangHow to use XOR for booleans


package main

import (
  "fmt"
)

func main() {
  X := true
  Y := false
  
  xor := (X || Y) && !(X && Y)
}ctrl + c
package main

default package declaration

func main() {

declare main function that will be launched automatically

(X || Y) && !(X && Y)

logical XOR representation instead of mission operator