Simple Calculator
Building a calculator
Last updated
Building a calculator
Last updated
In this example we are going to build a simple calculator
Start with the Start block. Drag it to the top of your canvas
Next lets use a User Simple Input block. (We want user input)
Lets added another User Simple Input Block.
The blocks will have variable names x and y you can label them anything you want
In the blocks numeric category lets add the Add Values block
Finally in the output category lets add the Output Results block
Your script should look something like this
Next build the script and view the results. You should be able to enter two values and add those values to see the result.
The video below show this example in detail
Try it yourself. Maybe add an additional input.