RosettaCodeData/Task/Logical-operations/Go/logical-operations-1.go
2020-02-17 23:21:07 -08:00

5 lines
138 B
Go

func printLogic(a, b bool) {
fmt.Println("a and b is", a && b)
fmt.Println("a or b is", a || b)
fmt.Println("not a is", !a)
}