Answer:
w=4
Step-by-step explanation:
2+6=8
8/2=4
w is 4 because half of 8 is 4.
Honestly this is my best guess idk.
Area of a rectangle: 2(L+W)
length: 4+W
Area: 2(4+W) + 2W = 96
8+2W+2W = 96
8+4W = 96
4W = 88
W= 22cm
Calculate for length: 2L + 2(22) = 96
2L + 44 = 96
2L = 52
L = 26cm
• The length is 26cm and width is 22 cm.
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>