// Chapter 16 example: combining conditions. // Run with: go run exercises/16/05-and-or-not.go package main import "fmt" func main() { level := 12 hasKey := true if level >= 10 && hasKey { fmt.Println("You can enter the dungeon.") } if level < 10 || !hasKey { fmt.Println("You are blocked.") } }