Answer:
e : g = 2 : 7
Step-by-step explanation:
e/f = 3/7
e = 3f/7
f/g = 2/3
g = 3f/2
e/g = (3f/7)/(3f/2) = 2/7
You replace the y with f(x)
So it becomes f(x)=2x+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>
Got this and not sure but best luck with your studying