1. Indent the following if statements properly.
a. b.
if (a == b) if (c == d) a = 1; else b = 1;else c = 1; if (a == b) a = 1; if (c == d) b = 1; else c = 1;
c. d.
if (a == b){if (c == d) a = 1; b = 2; } else b = 1; if (a == b){
if (c == d) a = 1; b = 2; }
else {b = 1; if (a == d) d = 3;}
2. Which two of the following three if statements are equivalent?
a.
if (a == b)
if (c == d) a = 1;
else b = 1;
b.
if (a == b){
if (c == d) a = 1; }
c.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here