Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- )
- func main() {
- // AND (&&)
- fmt.Println(true && true)
- fmt.Println(true && false)
- fmt.Println(false && true)
- fmt.Println(false && false)
- // OR (||)
- fmt.Println(true || true)
- fmt.Println(true || false)
- fmt.Println(false || true)
- fmt.Println(false || false)
- // NOT (!)
- fmt.Println(!true)
- fmt.Println(!false)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement