Examine your for statement:
for (int i = 2; i==13; i++)
This actually means the following:
- assign
2
toi
- Check whether
i
equal to13
. If yes, continue loop, exit otherwise.
Since i is not 13 in the first iteration of loop you never enter it. I believe that you wanted to write
for (int i = 2; i <= 13; i++)
In this case you will iterate from 2 to 13 inclusively. The condition of for loop means "do I have to remain iterating?" and not "do I have to escape?"