Welcome to the Treehouse Community
Looking to learn something new?
Please fill in the correct answer in each blank provided below.
Mazen Halawi7,806 Points
oops my bad, i just opened the view quiz and thought it was the only question there. thanks for pointing it out Steven!
The answer is 3.5 (i would follow Steven's direction and add to that calculate from left to right - keeping in mind y = 3 / 2 * 3.5 (start from left to right) y = (1) * 3.5 (3 / 2 = 1.5 but since its an int will return 1 y = (1 * 3.5) = 3.5
Steven Parker221,106 Points
I think Mazen was looking at the wrong question.
But this is a tricky one. Here's a hint: The thing to remember is that the part of the calculation that is done on components that are integers has an integer result. Then that part gets combined with the double component to produce a double result. But that intermediate calculation is integer.