I have a list that gets filled with integers as a user press a button.
I want to make a default number like 10, and then tell program to substract from 10, number that user pressed, and next i want to substract from that substracted number, but all i seem to get is substracting from 10 all over again.
So if a user hits 5, i want that 5 i now default and if user press 3, i want the result to be 2, not 8.
How do i do this?
Thanks in andvance.