You can easily decrement or decrease a variable by one with the -- operator.
--
i--;
is the equivalent of
i = i - 1;
NoteThe entire line becomes i--;, eliminating the need for the equal sign.
Change the code to use the -- operator on myVar.
myVar