Please post your code in code tags.

Changing the value of the loop control variable, in this case 'j', inside the loop is not a great idea. I recommend that you use another variable to compute the...