Which line in the following code is the loop control variable update?

1. int x, total = 0;
2. cin >> x;
3. while (x != 10)
4. {
5. total = total + x;
6. cout << x * 2;
7. cin >> x;
8. }

a) 1
b) 2
c) 5
d) 7

d) 7

Computer Science & Information Technology

You might also like to view...

Excel determines the messages returned when a data validation error occurs

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the purpose of RTP in VoIP?

A) It carries voice and data. B) It works with a PBX. C) It connects the VoIP phone to an analog phone. D) It manages the dial plan.

Computer Science & Information Technology