What numbers will the following code display on the computer screen? int x = 0; do {

Question:

What numbers will the following code display on the computer screen? 

int x = 0; 

do 

cout << x << endl; 

x += 1; 

} while (x < 5); 

a. 0, 1, 2, 3, 4 

b. 0, 1, 2, 3, 4, 5 

c. 1, 2, 3, 4 

d. 1, 2, 3, 4, 5

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: