Hi Jeremy, in x=x++ u r trying to assign a value x to the variable x and the increment operator is postfix. If u use prefix the loop i.e x= ++x will execute exactly 5 times plus the last time out of ur loop!
------------------ azaman
Ashik Uzzaman Director of Engineering, Twin Health, Mountain View, CA, USA