When I write a math calculation like 2*3 = 6 it tells me it's wrong! But I don't know why it's wrong!
= is used for assignment and you can't assign to an expression. You can assign to variable names.
thank you so much for the explanation!!
tengo el mismo problema en el paso tres ,con los calculos matematicos me da error alguien me puede colaborar por favor soy nuevo en intoduccion a ruby estoy atascado alli
When I write a math
calculation it tells me that its wrong.
I got it, I went to the ruby glossary and it said you have to write it in syntax like in this example:
1 + 2 #addition
1 - 3 #subtraction
2 * 3 #multiplication
4 / 8 #division
24 **7 #exponentiation
because 2 * 2 = 4 and then 4 * 2 = 8 (not 6)