No. You increment X from 1 to LR (24) and it will drop out of the loop when X is greater than 24. 25 is greater than 24 so it drops out of the loop and displays X = 25 and LR = 24. It has to increment X in order to test it against the upper limit.
It's rare that you would want to do anything with X once it has served its purpose as a loop counter.
Regards, TMS
Bookmarks