Actually, I think exam is right because it is the assignment = rather than the comparison == in the while loop expression. That messes me up all the time as I work in too many different languages and mix and match syntax. Most of the current ones are like that but I have worked in a lot of older languages that didn't differentiate between assignment and comparison when it came to equal signs.
