Divisibility Test

Write the function code that finds the average of the numbers divisible by 11 in the given array.

Example Solution

Let array arr equal to [ 10, 21, 246, 33, 47, 44, 99 ]. Divisions are: 33 , 44 , 99 and sum = 176
Our return value is the average of the sum value. (average = 58.66)

Contributed by Hamit Can Uzunay