Question: What numbers will the following code display on the computer screen? int x = 16; do { cout < < x < < endl; x

What numbers will the following code display on the computer screen?
int x = 16;
do
{
cout << x << endl;
x -= 4;
} while (x > 10);

a. 16, 12, 8

b. 16, 12

c. 20, 16, 12, 8

d. 20, 16, 12

Step by Step Solution

3.33 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related An Introduction Programming Questions!