push all exercices
This commit is contained in:
13
ch3/1/ch3_1.go
Normal file
13
ch3/1/ch3_1.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var greetings = []string{"Hello", "Hola", "नमस्कार", "こんにちは", "Привіт"}
|
||||
var a = greetings[:2]
|
||||
var b = greetings[1:4]
|
||||
var c = greetings[3:]
|
||||
fmt.Println(a)
|
||||
fmt.Println(b)
|
||||
fmt.Println(c)
|
||||
}
|
||||
Reference in New Issue
Block a user