Name: Anonymous 2010-09-28 21:02
Shit, dudes this has been bothering me for a while. And not even google can get it right. What am I doing wrong/
1 - 3 x 4 + 7
1 - 3 x 4 + 7
-3325-2-2-2-2-2-2-2-2-2-2-2>> 1 - 3 x 4 + 7
SyntaxError: <main>:70: syntax error, unexpected tIDENTIFIER, expecting keyword_end
1 - 3 x 4 + 7
^
$ irb
>> 1 - 3 * 4 + 7
=> -4
>>
x multiplies strings, use * for numbers.
> 1 - 3 x 4 + 7
-2-2-2-2-2-2-2-2-2-2-2
1 - 3 * 4 + 7
-4