✅ Array Problem - the variable "i" here appears to never change?
I have a feeling it is this part "{numbers[i]}" but i don't understand why, the output is in image attached and also it stops after it accepts 5 variable which makes me think i is being incremented.
4 Replies
Well, yeah, an array of integers will be filled with zeroes
numbers[i]
will always be 0
Because the array contains only 0sim retrieving the value when i want to retrieve the index of the array
Right.
makes sense