Go Program to Calculate Array Average

Write a Go Program to calculate the average of array items. The for loop in this Golang example iterates the array items from zero to five. Within the loop (for i := 0; i < 5; i++), we are calculating the sum of array items. Next, we divide the array sum by array size or … Read more