Files
  • main.go
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main
import "fmt"
func main(){ 
fmt.Println("Select your lucky number?")
var i int
fmt.Scanf("%d", &i)
switch i {
	case 0: fmt.Println("zero is your lucky number")
	case 1: fmt.Println("one is your lucky number")
	case 2: fmt.Println("two is your lucky number")
	case 3: fmt.Println("three is your lucky number")
	case 4: fmt.Println("four is your lucky number")
	case 5: fmt.Println("five is your lucky number")
	case 6: fmt.Println("six is your lucky number")
	fallthrough
	default: fmt.Println("I'm the result of a fallthrough")
	}
    }
go version go1.9.4 linux/amd64