I need to perform the following operation.
Example, I have an array cantidad = [420, 940, 920, 850,970]; and% ancho = 4500 .
The formula works like this:
420 + 940 / 2 = 890;
940 / 2 + 920 / 2 = 930;
920 /2 + 850 /2 = 885;
850...
asked by
03.03.2017 / 18:55