Page 1 of 1

[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
by answerhappygod
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 1
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 1 (22.62 KiB) Viewed 39 times
[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)