Simple Calculator

Building a calculator

In this example we are going to build a simple calculator

Getting Started

  1. Start with the Start block. Drag it to the top of your canvas

  2. Next lets use a User Simple Input block. (We want user input)

  3. Lets added another User Simple Input Block.

  4. The blocks will have variable names x and y you can label them anything you want

  5. In the blocks numeric category lets add the Add Values block

  6. 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.

Video Tutorial

The video below show this example in detail

Try it yourself. Maybe add an additional input.

Last updated