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...
Which of the following utilities can a technician use to display NetBIOS over TCP/IP information?
A. NETSTAT B. TRACERT C. NBTSTAT D. NSLOOKUP
Computer Science & Information Technology
What process gives a user access to a file system on a mobile device with full permissions, essentially allowing the user to do anything on the device?
A. mirroring B. jailbreaking C. sideloading D. carrier unlocking
Computer Science & Information Technology