Learn Ruby
Variables
5.2
Lesson

Variables to add numbers

In this example we have two variables number1 and number2.

We are adding these two variables and storing the result in a third variable called result.