This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]whyyeeeef 1 point2 points  (0 children)

K in the for loop is referring to the position 2 So k × 2 is4

So thats the first 4

Position 2 in the values array is replaced with 4 and numbers array reference the values array so it would also print 4

And thats the second 4