I did this: write a number in textBox1, when you click on the buttons +, -, *, / it resets textBox1. What I want: I wrote a number, clicked on one of these buttons so that he remembers this number and zeroed it, then I enter the next number and then when I clicked on = he gave me the answer, for example, the sum of the memory number and the number entered, .e: entered "3", clicked on the "+" textbox was reset, became clean, I enter "5" and when I click "=" it gives me their sum, 8.

    1 answer 1

    What is the actual problem? Get a variable or list for storing numbers, enter a number, press the corresponding symbol, which you probably determine and process, so in this section of the code and keep the number in a predefined variable until the text field is reset.