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 =...


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; }





else b = 1;



c.



if (a == b)





if (c == d) a = 1;





else b = 1;





May 25, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here