Don’t use any tricks in looping through your range. Just maintain a variable that tells you whether you should be adding this time, or subtracting, and alternate that variable with each pass through your loop.
3
solved Trouble adding and subtracting number from range [closed]