Hi,
1. Remember that the do-while loop will always be executed at least once no matter whether the condition has been satisfied r not.
Thus j-- will decrement the value to 9.
2. The condition of the do-while loop is then executed and ++i will increment the value of i
to 2.
3. Thus u have i = 2 and j = 9.
Hope it helps.
Clement