First, create an array with values and run. the for loop to find the sum of all the elements of the array. Finally, divide the sum with the length of the array to get the average of numbers. int length = array.
BrindhaPrathaban Answered question
Not a member yet? Register now
Are you a member? Login now