Average of an array
Oct 2, 2023 · 2 min read · This was code Wars kata problem. Here is the question: DESCRIPTION: Write a function that calculates the average of the numbers in a given list. Note: Empty arrays should return 0. Solution First, we have to determine the sum of the total elements in...
Join discussion



