Stuck at 14/16 intro to Ruby


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
intro to Ruby 14/16

<In what way does your code behave incorrectly? Include ALL error messages.>
doesn’t run. Error message "have you declared the variable sum?

```

Replace this line with your code.

<do not remove the three backticks above>

#2

Based on the error message
It seems you never defined a variable named sum

i.e.

sum = 13 + 379
product = 923 * 15
quotient = 13209 / 17

#3

Hi,
My code was as follows:
my_sum = 13 + 379
my_product = 923 + 15
my_quotient = 13209 / 17
puts my_sum
puts my_product
puts my_quotient

If this is incorrect, then I don’t understand what is needed.
Paul


#4

The instructions say to set the variable
sum to 13 + 379

They didn’t say set the variable
my_sum to 13 + 379


#5

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