[CLO-3] What is the value of the variable d after the following code is executed? Ansume the user response is 27 11 3 27
Posted: Fri Jul 01, 2022 5:33 am
[CLO-3] What is the value of the variable d after the following code is executed? Ansume the user response is 27 11 3 27 12 12 int x1, x2, d=0; cout<<"Enter a set of integers: "; cin >> x1; while (1) cin >>> x2; if (abs(x2 - x1) < 3) break; d+= abs(x2-x1); x1 - x2; Selected Answer: 14 17 Correct Answer: Answer range +/-0(17-17)