first commit
This commit is contained in:
22
GoLanguage.md
Executable file
22
GoLanguage.md
Executable file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var a [2]string
|
||||
a[0] = "Hello"
|
||||
a[1] = "World"
|
||||
fmt.Println(a[0], a[1])
|
||||
fmt.Println(a)
|
||||
|
||||
primes := [6]int{2, 3, 5, 7, 11, 13}
|
||||
fmt.Println(primes)
|
||||
fmt.Println(split(30))
|
||||
}
|
||||
|
||||
func split(sum int)(x,y int){
|
||||
x=sum/9
|
||||
y=sum-x
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user