Basic Arrays question help please!

If i were given the following array numbers with the corresponding values:

index:0 1 2 3 4 5 6 7 8
value:1 3 5 7 9 11 13 15 17

how would I calculate using the following loop

for(int i=0; i<9; i++)
{
numbers[i] = numbers[i] * 2 + i;
}
and what would the outcomes be?
Do you know what the statement inside the for loop is doing?
not really
Try looking at the expression in parts. How about just numbers[i]?
Thanks got it now...........
Topic archived. No new replies allowed.