Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Ruby Code Challenge ....Ruby Numbers Set the variable product to be a multiple of the variables a and b.

a = 6 b = 2

..... I thought it would be a * b or, 6 * 2

I'm a little confused here, please help guys, thanks

2 Answers

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 49,047 Points

You want to declare a new variable, product and assign a* b to it.

I put c = a * b ... and it was wrong

Clayton Perszyk
Clayton Perszyk
Treehouse Moderator 49,047 Points

Replace c with the word product and it should pass; your code is valid, but the test for correctness is expecting the word product.

Thanks so much! ... I wonder why he made us do something that wasn't apart of the videos... Confusing! But, thanks again man!