I need some help with this:
Given: int x,y,z What are the values of x,y and z after the following code segments have been executed?
x=2; y=0; z=2;
if(x)
{
if(y)
z=1;
}
else
z=3;
The answer is x=2, y=0, and z=2 I have no clue how to do this. This is my first programming class and I would greatly appreciate any help on this! Thanks so much