Then calculate a-=a, which is equivalent to: a=a-a= 144- 144=0.
Finally, calculating a+=a is equivalent to: a=a+a=0+0=0.
So there is nothing wrong with the result being equal to 0.
You may not remember the priority and combination of operators, so you get the wrong result, or forget that the value of a is not the original 12 after an operation.