Last active
October 16, 2019 04:01
-
-
Save parvezmrobin/e1e2d554cc8c4134c30250146c2743dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func main() { | |
var a [2]string | |
a[0] = "Hello" | |
a[1] = "World" | |
println(a[0], a[1]) // Hello World | |
primes := [6]int{2, 3, 5, 7, 11, 13} | |
println(primes[0], primes[1], primes[2], primes[3], primes[4], primes[5]) | |
// 2 3 5 7 11 13 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment