- 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 37 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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 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
[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)