two inputs, one label for output (calculation)
I have two input fields for values x and y, one button and a label, which should show the value of x+y after pressing the button.
I am able on pushing the button to get the values of both input fields and store them in appropriate variables.
Also I can change the text in the label according to these two values (x and y).
But I do not know where I need to declare the variable z, assign the value of z=x+y and use the value of z to output it into my label.
Who can help me out (or point me where I can find the appropriate info?)?
Thanks!