# cat if_else.go
package main
import "fmt"
func main() {
n := 9
if n < 0 {
fmt.Println("aaa")
} else if n < 10 {
fmt.Println("bbb")
} else {
fmt.Println("ccc")
}
}
# go run if_else.go
bbb
# cat if_else.go
package main
import "fmt"
func main() {
n := 9
if n < 0 {
fmt.Println("aaa")
} else if n < 10 {
fmt.Println("bbb")
} else {
fmt.Println("ccc")
}
}
# go run if_else.go
bbb