Declare an array of integers with the size of 10 elements, assign 54 to its [4] element and finally print the array to the console.
Arrays
Coding a 1D array
Report a typo
Write a program in Go
package main
import "fmt"
func main() {
// Create the array of 10 elements and assign 54 to its [4] element below:
array := ?
// DO NOT delete, this line prints the array!
fmt.Println(array)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.