0
I have an array with the jump number and its value. I need to count the value of the jump until it reaches 4.00. And continue this count until the end of the jump.
salto 1 => 2,00 salto 2 => 2,00 salto 3 => 2,00 salto 4 => 2,00 salto 5 => 2,00 salto 6 => 2,00 salto 7 => 2,00 salto 8 => 2,00 salto 9 => 2,00 salto 10 => 2,00
The final result should be:
Salto 2 => 4,00 Salto 4 => 4,00 Salto 6 => 4,00 Salto 8 => 4,00 Salto 10 => 4,00
This is only a basis for understanding, the number of jumps can vary and the value tbm can.
But this jump is using either total or two in two or something else? What do you take into account to know the timing of the jump?
– Wictor Chaves
Can you give a better example? that one didn’t make much sense. Why The jumps went to the value 4? How would be calculated this value?
– Woss
for example: jump 1 and jump 2, adding their values gives 4, then the value 4 was in jump 2.
– Weslley Dutra
But always add 2 to 2 jumps ?
– Isac