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

Question:

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

int total = 1; 

do 

total += 2; 

cout << total << endl; 

} while (total <= 3); 

a. 1, 2 

b. 1, 3 

c. 3 

d. 3, 5

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

Step by Step Answer:

Question Posted: