You never increase i.
Type: Posts; User: King Mir
You never increase i.
You need to set ii to 0 before your second while loop.
The usual convention with loop variables is to use i, then j, then k, not i, then ii, then iii.
But you're error is likely caused by the...