Trick question. For the reflections given in the problem statement, the x-coordinate doesn't change. The number that goes in the green box is 1.
Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...
<span>if x
x = false;
else
x = true;
<span>end</span></span>
First of all, you should know that:
direct variation:
y = c * x
Inverse variation:
y = c / x
where, c is any number that belongs to the real ones.
answer:
An equation that represents an inverse variation is
y = 4 / x
Answer:
4 * 14 = 56
Step-by-step explanation:
56/2 = 28
28/2 = 14
14/2 = 7
7/7 = 1
56 = 2 * 2 * 2 * 7
56 = (2 * 2) * (2 * 7)
56 = 4 * 14