Craft a program that computes the average age from a set of diverse ages.
// An array storing different ages // Get the length of the array // Loop through the elements of the array // Calculate the average by dividing the sum by the length // Print the average |