Math calculation


#1

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!


#2

= is used for assignment and you can't assign to an expression. You can assign to variable names.


#3

thank you so much for the explanation!!


#4

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


#5

When I write a math
calculation it tells me that its wrong.


#6

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


#7

because 2 * 2 = 4 and then 4 * 2 = 8 (not 6)