aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/arrays/arrays1/main.go
blob: 278205843b4bfbdfd36129b53be5bdaaac46d14b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// arrays1
// Make me compile!

// I AM NOT DONE
package main

import "fmt"

func main() {
	var colors [3]string

	colors[0] = "red"
	colors[1] = "green"
	colors[2] = "blue"

	fmt.Printf("First color is %s:\n", colors[])
	fmt.Printf("Last color is %s:\n", colors[])
}