Sure print the first array, create a second array, calculate into it, print that, redefine the first array as a the third array (or simply use a "last index" type variable) and calculate the second into that, rinse, lather, repeat.
Edit: Better of course, would be to simply recalculate the first value "in place" and use a "last index" type variable.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 17
I'm sure it would be. Post your code and we will help you correct it. The last method is the one you want to use.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 17
Like I said, go back and try the second method
print the arrays values
Create an int assign it the length of the array.
Then while that variable is greater than 1
loop through the array from 1 while the index is less than that variable
and assign to index - 1 the result of subtracting the values at index and index - 1
print that array's values up the element at that variables value minus 2
subtract one from that variable
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,484
Solved Threads: 494
Skill Endorsements: 17