Question: Consider the following if statement, which is syntactically correct, but uses poor style and indentation: if (x >= y) if (y > 0) x =
Consider the following if statement, which is syntactically correct, but uses poor style and indentation:
if (x >= y) if (y > 0) x = x * y; else if (y < 4) x = x - y;
Assume that x and y are int variables containing the values 9 and 3, respectively, before execution of the preceding statement. After execution of the statement, what value does x contain?
a. 9
b. 1
c. 6
d. 27
e. none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
