unable to give a finish to a calculator
Hi I am ayush
I have made a calculator that performs every arithmetic operation but the problem is that suppose I want to add 1+1+1. so I stored the value of first1 in x(variable) then I click on + then added another 1 in variable in y then when I again hit plus button the textbox should show value 2 but it doesn't then when I again click on 1 and press = then it shows 3.But I want to show that as soon as I second time hit plus then answer should be on textbox.
To make this calculator I've assigned value of "a" for every arithmetic operation and using these values I come to the result. Every time the result shown is correct but not showing of result as soon as arithmetic operator's button is a big problem.. So help me