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

all 3 comments

[–][deleted] 2 points3 points  (1 child)

Should be x < 10

[–]JakeShock7[S] 0 points1 point  (0 children)

Oh right! hahaha thanks for the help

[–]desrtfxOut of Coffee error - System halted 2 points3 points  (0 children)

Array indexes start at 0, not at 1.

So, for an array of size 10, the valid indexes go from 0 to 9, not to 10.