Read two numbers typed into the terminal and print their sum.
This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on.
The steps
- We add a While loop, which repeats forever.
- We create a text variable called terminal.
- We create two number variables, num1 and num2.
- Above the loop we clear the terminal with an empty Set.
- Behind it we read the first number with Wait.
- And behind that we read the second number the same way.
- Behind it we put Join with a sum inside.
- The sum adds num1 and num2.
- On the dashboard we draw a terminal and give it the variable terminal.
When you finish, the app takes you straight to the next tutorial in the path.