Declaring a variable in arithmetic (Ruby)


I am just unsure how to correctly declare the variable.

(ruby): syntax error, unexpected '=', expecting $end
13 + 379 = 392

Replace this line with your code.


to declare a variable you type its name, an equals sign, and its value.


difference = 9 - 7


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.