Menu
×
×
Correct!
Exercise:Print the value of the second element in the cars array.
package main
import ("fmt")
func main() {
var cars = [4]string{"Volvo", "BMW", "Ford", "Mazda"}
fmt.Print(cars[1])
}
Not CorrectClick here to try again. Correct!Next ❯package main import ("fmt") func main() { var cars = [4]{"Volvo", "BMW", "Ford", "Mazda"} fmt.Print( ) } |