Nov-26-2020, 09:30 PM
(Nov-26-2020, 05:33 PM)perfringo Wrote: There are some ambiguity for me:
- sum every 10 element in the list - does this mean that sum on ten-item chunks is needed? What should happen if the number of items in list is not divisible by 10?
- divide first 10 element with first sum - what does it mean?
Hello,
Thanks for the answer!
1) do not worry number of elements in my list will be always divided by 10
Suppose that I have 30 elements in my array
2) once we find the sum of every 10 element, suppose that the first sum will be 20, second sum will be 10, and third some will be 12 then first 10 elements will be divided by 20 and second ten elements will be divided by 10 and third ten element will be divided by 12
You can look at the example, I explained it in my question