push all exercices
This commit is contained in:
BIN
ch3/1/ch3_1.exe
Normal file
BIN
ch3/1/ch3_1.exe
Normal file
Binary file not shown.
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)
|
||||
}
|
||||
3
ch3/1/go.mod
Normal file
3
ch3/1/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module ch3_1
|
||||
|
||||
go 1.25.0
|
||||
Reference in New Issue
Block a user