RosettaCodeData/Task/Logical-operations/Go/logical-operations-1.go

6 lines
138 B
Go
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
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)
}