For whose who has a APCS test prep book

<p>I want to find this exact same problem, if you have a APCS test prep book please skim through and see if this problem exist in your book.</p>

<p>What values are stored in x and y after execution of the following program segment?
int x=30, y=40;
if (x>=0)
{
if (x<=100)
{
y = 3x;
if (y <50)
x/=10;
}
else
y = 2x;
}
else
y = -x;</p>

<p>A x=30 y=90
B x=30 y=-30
C x=30 y=60
D x=3 y=-3
E x=30 y=40</p>