That is what you are doing - increasing each rocket height by 10 in a loop and displaying the result. All rockets start from 10, so the final height is 20.
That's why I ask you to post the actual assignment - what you explain in words and what you display as "expected result" does not match - e.g. the expected result suggest that first one in the list does not move up at all. It's unclear do you have to move the rocket by different distance, or e.g. simply initialize them with different height,
That's why I ask you to post the actual assignment - what you explain in words and what you display as "expected result" does not match - e.g. the expected result suggest that first one in the list does not move up at all. It's unclear do you have to move the rocket by different distance, or e.g. simply initialize them with different height,
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs