Write the following do-while statement with a while construct, and maybe some extra code.

```
x = 10;
do
{cout << x << endl;
x = x - 3;
} while ( x > 0 );
```
What will be an ideal response?


```
A simple minded change from do while to while and insertion of the
loop body gives this:
x = 10;
cout << x << endl;
x = x - 3;
while ( x > 0 )
{
cout << x << endl;
x = x - 3;
```

Computer Science & Information Technology

You might also like to view...

____________________ data means manipulating it in some way.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To fit more lines on a report, you must ________ the height of the Detail section

Fill in the blank(s) with correct word

Computer Science & Information Technology

Footnotes are used if there are many references; endnotes, if there are only a few

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ War was the first modern war in which there was strong and widespread domestic opposition

a. Korean b. Persian Gulf c. Iraqi d. Vietnam

Computer Science & Information Technology