diff options
Diffstat (limited to 'exercises/switch/switch2/main.go')
-rw-r--r-- | exercises/switch/switch2/main.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/exercises/switch/switch2/main.go b/exercises/switch/switch2/main.go new file mode 100644 index 0000000..153ac39 --- /dev/null +++ b/exercises/switch/switch2/main.go @@ -0,0 +1,12 @@ +package main + +import "fmt" + +func main() { + switch { + case 0 > 1: + fmt.Println("zero is greater than one") + case: + fmt.Println("one is greater than zero") + } +} |