Last week, we talked about ways of incrementing a variable by doing something like i = i + 1;. We can decrement a variable similarly by typing i = i - 1;. Here are some other ways :
i++; ++i; i+=1; i--; --i; i-=1;