Question 1 int a = 3, b = 2, c = 5; if (a > b) a = a+1; if ( b > c) a = a+2; else a = a+3; cout << a < endl; a. 4 b. 5 c. 6 d. 7 e. None of the above

This question is in C++. Please explain how to get the answer.

Skip to content
# Question 1 int a = 3, b = 2, c = 5; if (a b) a = a+1; if ( b c) a = a+2; else a = a+3; cout a endl; a. None of the above This question is in…

Question 1 int a = 3, b = 2, c = 5; if (a > b) a = a+1; if ( b > c) a = a+2; else a = a+3; cout << a < endl; a. 4 b. 5 c. 6 d. 7 e. None of the above

This question is in C++. Please explain how to get the answer.