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 trialJames Grupp
7,260 PointsMultiply 25 times 3 and assign the result to a variable named product. Then divide 7 by 4 and assign the result to a var
Multiply 25 times 3 and assign the result to a variable named product. Then divide 7 by 4 and assign the result to a variable named quotient.
I am pretty confused on this, and I was just hoping someone could explain the answer. I went back in the video, but I did not get it. Thanks ya'll in advance!
1 Answer
Jeff Muday
Treehouse Moderator 28,720 PointsIf the Challenge confuses you, you should never hesitate to ask questions. The only thing that is a slight "gotcha" is that Ruby needs to have one floating-point number to indicate that the division's result is also floating-point.
They are looking for a two-line Ruby program--
product = 25 * 3
quotient = 7 / 4.0