Consider the following if statement, which is syntactically correct, but uses poor style and indentation: if (x
Question:
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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285096261
4th Edition
Authors: Barbara Doyle
Question Posted: