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>
Answer:
x= 0 , y= -8
Step-by-step explanation:
Add the 2 equations together, you would get:
9x = 0
Divide both sides by 9:
x = 0/9
x=0
Substitute the value of x in one of the equations to get the value of y, I picked the first one (5x+2y = -16)
5(0) +2y = -16
0+2y = -16
2y = -16
Divide both sides by 2:
y = -8
<span>1 times 2 times 3 times 4 times 5 = 120 </span>
Answer:
Incorrect
Step-by-step explanation:
It is incorrect because all even numbers have a factor of 1.
That is odd.