Here is another example of how to use one-dimensional array in Golang programming language.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com
Sample Program Output
Program Listing
/* example_no_2.go
Author : Mr. Jake Rodriguez Pomperada, MAED-IT
Date : August 1, 2019 Thursday 4:20 PM
Location : Bacolod City, Negros Occidental
Website : http://www.jakerpomperada.com
Emails : jakerpomperada@gmail.com and jake_pomperada@tup.edu.ph
*/
package main
import "fmt"
func main() {
var j[6]int /* An array of 6 integers */
j[0] = 201
j[1] = 202
j[2] = 203
j[3] = 205
j[4] = 206
j[5] = 207
fmt.Printf("\n")
fmt.Print("\tAnother Example of One-Dimensional Array")
fmt.Print("\n\n")
fmt.Printf("\tj[0] = %d, j[1] = %d, j[2] = %d\n", j[0], j[1], j[2])
fmt.Printf("\n")
fmt.Printf("\tj[3] = %d, j[4] = %d, j[5] = %d\n", j[3], j[4], j[5])
fmt.Printf("\n")
fmt.Println("\tx =",j)
}